Room save/load code under construction. Realized during implementation that I will need to re-work the environment save code due to how rooms doors are loaded and saved.

This commit is contained in:
Scionwest_cp 2012-03-11 16:50:28 -07:00
parent 706c770dd7
commit 2c39c7538e
9 changed files with 148 additions and 13 deletions

View file

@ -40,6 +40,19 @@ namespace MudEngine.DAL
return String.Empty;
}
public String[] GetDataCollection(String property)
{
List<String> data = new List<string>();
foreach (XElement element in SaveData.Elements())
{
if (element.Name.LocalName == property)
data.Add(element.Value);
}
return data.ToArray();
}
public Boolean Save(String filename)
{
if (!Directory.Exists(Path.GetDirectoryName(filename)))