예제 #1
0
        void ResetSlots()
        {
            if (toolID == "Slots")
            {
                for (int x = 0; x < LevelProfile.MaxSize; x++)
                {
                    for (int y = 0; y < LevelProfile.MaxSize; y++)
                    {
                        profile.SetSlot(x, y, true);
                    }
                }
            }

            if (toolID == "Generators")
            {
                for (int x = 0; x < LevelProfile.MaxSize; x++)
                {
                    for (int y = 0; y < LevelProfile.MaxSize; y++)
                    {
                        profile.SetGenerator(x, y, y == 0);
                    }
                }
            }

            if (toolID == "Teleports")
            {
                for (int x = 0; x < LevelProfile.MaxSize; x++)
                {
                    for (int y = 0; y < LevelProfile.MaxSize; y++)
                    {
                        profile.SetTeleport(x, y, 0);
                    }
                }
            }

//			if (toolID == "Sugar Drop")
//				for (int x = 0; x < 12; x++)
//					for (int y = 0; y < 12; y++)
//						profile.SetSugarDrop(x, y, y == profile.height - 1);
        }