示例#1
0
        public void Draw(GameTime gameTime, Renderer renderer)
        {
            FloorTile.Draw(gameTime, renderer);

            if (OccupantEquipment != null)
            {
                OccupantEquipment.Draw(gameTime, renderer);
            }

            foreach (var tileObject in tileObjects)
            {
                tileObject.Draw(gameTime, renderer);
            }
        }
示例#2
0
 private void Dispose(bool isDisposing)
 {
     if (FloorTile != null)
     {
         FloorTile.Dispose();
     }
     if (OccupantEquipment != null)
     {
         OccupantEquipment.Dispose();
     }
     foreach (var tileObject in tileObjects)
     {
         tileObject.Dispose();
     }
 }
示例#3
0
        public void Draw(GameTime gameTime, Renderer renderer, int x, int y, bool isOverlappingDeadZoneOverride)
        {
            x += (int)ProjectedPosition.X;
            y += (int)ProjectedPosition.Y;

            FloorTile.Draw(gameTime, renderer, x, y, isOverlappingDeadZoneOverride);

            if (OccupantEquipment != null)
            {
                OccupantEquipment.Draw(gameTime, renderer, x, y, isOverlappingDeadZoneOverride);
            }

            foreach (var tileObject in tileObjects)
            {
                tileObject.Draw(gameTime, renderer, x, y, isOverlappingDeadZoneOverride);
            }
        }