예제 #1
0
        public void AddFloorTemporary(Floor flr, int x, int y)
        {
            if (myFloors_tempbuff == null)
            {
                myFloors_tempbuff = new Floor[55, 48];
                for (int i = 0; i < 55; i++)
                    for (int j = 0; j < 48; j++)
                        myFloors_tempbuff[i, j] = myFloors[i, j];
            }

            Floor floor = (Floor)flr.AddToWorld(x, y, 0);
            myFloors_tempbuff[x, y] = floor;
            //myShouldDoPicking = true;
        }
예제 #2
0
 public void AddFloor(Floor flr, int x, int y)
 {
     Floor floor = (Floor)flr.AddToWorld(x, y, 0);
     myFloors[x, y] = floor;
     myObjects.Add(floor);
     myShouldDoPicking = true;
 }