private static Action <Graphics> CreateRenderer(Map.Wall wall, MapViewRenderer mapView) { return(g => { if (EditorSettings.Default.Edit_PreviewMode) { mapView.DrawTexturedWall(g, wall, false, false); } }); }
public ObjectRenderer(MapViewRenderer mapRenderer) { this.objectExtentFont = new Font("Arial", 9F, FontStyle.Bold); this.objectScriptNameFont = new Font("Arial", 11F); this.mapRenderer = mapRenderer; }
public FakeWallObject(int index, Map.Wall wall, MapViewRenderer mapView) : base(CreateRenderer(wall, mapView)) { this.index = index; this.wall = wall; }
public TileRenderer(MapViewRenderer mapRenderer) { this.mapRenderer = mapRenderer; this.visibleTiles = new List <TileDrawData>(); }