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); } }
private void Dispose(bool isDisposing) { if (FloorTile != null) { FloorTile.Dispose(); } if (OccupantEquipment != null) { OccupantEquipment.Dispose(); } foreach (var tileObject in tileObjects) { tileObject.Dispose(); } }
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); } }