Exemple #1
0
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------

        public EditorControl(EditorForm editorForm)
        {
            this.editorForm = editorForm;

            //this.propertyGridControl	= null;
            this.worldFilePath    = String.Empty;
            this.worldFileName    = "untitled";
            this.world            = null;
            this.level            = null;
            this.tileset          = null;
            this.zone             = null;
            this.rewardManager    = null;
            this.inventory        = null;
            this.timer            = null;
            this.ticks            = 0;
            this.roomSpacing      = 1;
            this.playAnimations   = false;
            this.isInitialized    = false;
            this.hasMadeChanges   = false;
            this.needsRecompiling = false;
            this.compileTask      = null;
            this.compileCallback  = null;

            this.currentLayer            = 0;
            this.currentToolIndex        = 0;
            this.aboveTileDrawMode       = TileDrawModes.Fade;
            this.belowTileDrawMode       = TileDrawModes.Fade;
            this.showRewards             = true;
            this.showGrid                = false;
            this.showEvents              = false;
            this.highlightMouseTile      = true;
            this.selectedRoom            = -Point2I.One;
            this.selectedTilesetTile     = Point2I.Zero;
            this.selectedTilesetTileData = null;
            this.playerPlaceMode         = false;
        }
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------
        public EditorControl()
        {
            this.propertyGridControl	= null;
            this.worldFilePath	= String.Empty;
            this.worldFileName	= "untitled";
            this.world			= null;
            this.level			= null;
            this.tileset		= null;
            this.zone			= null;
            this.rewardManager	= null;
            this.inventory		= null;
            this.timer			= null;
            this.ticks			= 0;
            this.roomSpacing	= 1;
            this.playAnimations	= false;
            this.isInitialized	= false;
            this.hasMadeChanges	= false;

            this.currentLayer				= 0;
            this.currentToolIndex			= 0;
            this.aboveTileDrawMode			= TileDrawModes.Fade;
            this.belowTileDrawMode			= TileDrawModes.Fade;
            this.showRewards				= true;
            this.showGrid					= false;
            this.showEvents					= false;
            this.highlightMouseTile			= true;
            this.selectedRoom				= -Point2I.One;
            this.selectedTile				= -Point2I.One;
            this.selectedTilesetTile		= Point2I.Zero;
            this.selectedTilesetTileData	= null;
            this.playerPlaceMode			= false;
            this.sampleFromAllLayers		= false;
        }