Added MudEngine Project to the Solution. I will slowly be moving the MudDesigner.MudEngine classes out of the Mud Designer Solution and into it's own.
Currently the Mud Designer still contains the old MudEngine classes until migration has been completed.
This commit is contained in:
parent
7d3b6e471d
commit
dc311f5aa5
21 changed files with 1330 additions and 0 deletions
32
MudEngine/GameObjects/Environment/StartingLocation.cs
Normal file
32
MudEngine/GameObjects/Environment/StartingLocation.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
//MUD Engine
|
||||
using MudEngine.FileSystem;
|
||||
using MudEngine.GameObjects;
|
||||
using MudEngine.GameObjects.Environment;
|
||||
|
||||
namespace MudEngine.GameObjects.Environment
|
||||
{
|
||||
public struct StartingLocation
|
||||
{
|
||||
public string Room;
|
||||
public string Zone;
|
||||
public string Realm;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (string.IsNullOrEmpty(Room))
|
||||
return "No initial location defined.";
|
||||
else
|
||||
{
|
||||
if (Realm == "No Realm Associated.")
|
||||
{
|
||||
return Zone + "->" + Room;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Realm + "->" + Zone + "->" + Room;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue