This commit is contained in:
Scionwest_cp 2009-12-08 10:34:20 -08:00
parent dbe4a45738
commit c7f5a9b2a7
24 changed files with 566 additions and 1315 deletions

View file

@ -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);
}
}
}

View file

@ -4,8 +4,6 @@
{
Root,
Currency,
Rooms,
Zones,
Realms,
}
}