示例#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
        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);
            }
        }