示例#1
0
        public MapEditorActionsToolVM(MapEditorVM parent, IWorkspaceMan workspaceMan)
        {
            Parent          = parent;
            RefIdEditor     = new EntryRefIdEditorVM(workspaceMan, typeof(IDbActionSet));
            ActionsSelector = new MapEditorActionsSelectorVM(this);

            RefIdEditor.PropertyChanged += ActionEntryRef_PropertyChanged;
        }
示例#2
0
        public LevelPropertiesVM(MapEditorVM parent)
        {
            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }

            Parent = parent;

            Parent.PropertyChanged += Map_PropertyChanged;
        }
示例#3
0
        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;
        }
示例#4
0
        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;
        }
示例#5
0
 public MapViewCursorVM(MapEditorVM parent)
 {
     Parent = parent;
 }
示例#6
0
 public MapLayoutVM(MapEditorVM parent)
 {
     Parent = parent;
 }
示例#7
0
        public MapEditorPalettesToolVM(MapEditorVM parent)
        {
            Parent = parent;

            PaletteNames = new BindingList <string>();
        }