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:
parent
706c770dd7
commit
2c39c7538e
9 changed files with 148 additions and 13 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue