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

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

            Parent = parent;

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

            PaletteNames = new BindingList <string>();
        }