コード例 #1
0
ファイル: Level.cs プロジェクト: hirsty/MCForge-Vanilla-1
        /// <summary>
        /// Create a level with a specified type and a specified size
        /// </summary>
        /// <param name="size">The size to create the level.</param>
        /// <param name="type">The type of the level you want to create</param>
        /// <returns>returns the level that was created</returns>
        public static Level CreateLevel(Point3 size, LevelTypes type)
        {
            Level newlevel = new Level(size);

            switch(type)
            {
                case LevelTypes.Flat:
                    newlevel.CreateFlatLevel();
                    break;
            }

            return newlevel;
        }