예제 #1
0
        /// <summary>
        /// Loads default item TileSet
        /// </summary>
        /// <returns>True on succes</returns>
        public bool LoadItemTileSet()
        {
            if (string.IsNullOrEmpty(ItemTileSetName))
            {
                return(false);
            }

            if (ItemTileSet != null)
            {
                ItemTileSet.Dispose();
            }
            ItemTileSet = null;

            ItemTileSet = ResourceManager.CreateAsset <TileSet>(ItemTileSetName);

            return(ItemTileSet != null);
        }
예제 #2
0
        /// <summary>
        /// Dispose
        /// </summary>
        public void Dispose()
        {
            foreach (Maze maze in Mazes.Values)
            {
                maze.Dispose();
            }
            Mazes.Clear();

            if (ItemTileSet != null)
            {
                ItemTileSet.Dispose();
            }
            ItemTileSet = null;

            StartLocation = null;
            Note          = "";

            IsDisposed = true;
        }