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