Ejemplo n.º 1
0
        /// <summary>
        /// Gets the short name for the world
        /// </summary>
        /// <returns>The short world name</returns>
        public override string GetShortWorldName(R1_World world)
        {
            switch (world)
            {
            case R1_World.Jungle:
                return("JUN");

            case R1_World.Music:
                return("MUS");

            case R1_World.Mountain:
                return("MON");

            case R1_World.Image:
                return("IMG");

            case R1_World.Cave:
                return("CAV");

            case R1_World.Cake:
                return("CAK");

            default:
                throw new ArgumentOutOfRangeException(nameof(world), world, null);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the folder path for the specified world
 /// </summary>
 /// <param name="world">The world</param>
 /// <returns>The world folder path</returns>
 public string GetWorldFolderPath(R1_World world) => GetWorldName(world) + "/";
Ejemplo n.º 3
0
 public string GetEventManfiestFilePath(R1_World world) => GetWorldFolderPath(world) + $"EVE.MLT";
Ejemplo n.º 4
0
 /// <summary>
 /// Gets the folder path for the specified world
 /// </summary>
 /// <param name="world">The world</param>
 /// <returns>The world folder path</returns>
 public virtual string GetWorldFolderPath(R1_World world) => GetDataPath() + GetWorldName(world) + "/";
 /// <summary>
 /// Gets the name for the world
 /// </summary>
 /// <returns>The world name</returns>
 public override string GetWorldName(R1_World world) => base.GetWorldName(world).Substring(1);
Ejemplo n.º 6
0
 /// <summary>
 /// Gets the folder path for the specified world
 /// </summary>
 /// <param name="world">The world</param>
 /// <returns>The world folder path</returns>
 public override string GetWorldFolderPath(R1_World world) => String.Empty;