public MapEditorActionsToolVM(MapEditorVM parent, IWorkspaceMan workspaceMan) { Parent = parent; RefIdEditor = new EntryRefIdEditorVM(workspaceMan, typeof(IDbActionSet)); ActionsSelector = new MapEditorActionsSelectorVM(this); RefIdEditor.PropertyChanged += ActionEntryRef_PropertyChanged; }
public LevelPropertiesVM(MapEditorVM parent) { if (parent == null) { throw new ArgumentNullException(nameof(parent)); } Parent = parent; Parent.PropertyChanged += Map_PropertyChanged; }
public MapEditorViewVM(MapEditorVM parent, ViewRenderer renderer, RenderTarget renderTarget) { Parent = parent; this.renderer = renderer; RenderTarget = renderTarget; Transformation = new Matrix(); Cursor = new MapViewCursorVM(Parent); Cursor.ToWorldCoordsFunc = ToWorldCoords; Cursor.PropertyChanged += Cursor_PropertyChanged; }
public MapEditorTilesToolVM(MapEditorVM parent, IWorkspaceMan workspaceMan) { Parent = parent; RefIdEditor = new EntryRefIdEditorVM(workspaceMan, typeof(IDbTileAtlas)); TilesCursor = new List <MapEditorTileInsertOperation>(); //Inserter = new MapEditorTilesInserter(Parent); TileSetSelector = new MapEditorTileSetSelectorVM(this); var mapViewRenderTarget = new RenderTarget(1, 1); var renderer = new TilesSelectorRenderer(this, mapViewRenderTarget); TilesSelector = new MapEditorTilesSelectorVM(this, renderer, mapViewRenderTarget); RefIdEditor.PropertyChanged += EntryRef_PropertyChanged; }
public MapViewCursorVM(MapEditorVM parent) { Parent = parent; }
public MapLayoutVM(MapEditorVM parent) { Parent = parent; }
public MapEditorPalettesToolVM(MapEditorVM parent) { Parent = parent; PaletteNames = new BindingList <string>(); }