This commit is contained in:
parent
dbe4a45738
commit
c7f5a9b2a7
24 changed files with 566 additions and 1315 deletions
|
@ -105,5 +105,21 @@ namespace MudDesigner.MudEngine.FileSystem
|
|||
else
|
||||
return System.IO.Path.Combine(rootPath, DataType.ToString());
|
||||
}
|
||||
|
||||
public static string GetDataPath(string Realm, string Zone)
|
||||
{
|
||||
string assemblyPath = System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName;
|
||||
string assemblyName = System.IO.Path.GetFileName(assemblyPath);
|
||||
string installBase = assemblyPath.Substring(0, assemblyPath.Length - assemblyName.Length);
|
||||
string rootPath = System.IO.Path.Combine(installBase, "Data");
|
||||
string realmsPath = System.IO.Path.Combine(rootPath, Realm);
|
||||
|
||||
return System.IO.Path.Combine(realmsPath, Zone);
|
||||
}
|
||||
|
||||
public static string GetDataPath(string Realm, string Zone, string Room)
|
||||
{
|
||||
return System.IO.Path.Combine(GetDataPath(Realm, Zone), Room);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
{
|
||||
Root,
|
||||
Currency,
|
||||
Rooms,
|
||||
Zones,
|
||||
Realms,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue