CharacterStats.ToString() now returns a formatted string with all of the stats.
StandardGame and it's Child Classes display the name of the game when ToString() is invoked. Realm and Zone save/load code is completed.
This commit is contained in:
parent
ee3cd897f2
commit
706c770dd7
6 changed files with 133 additions and 15 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
using MudEngine.Game.Environment;
|
||||
using MudEngine.Core.Interfaces;
|
||||
|
@ -57,7 +58,23 @@ namespace MudEngine.Game
|
|||
|
||||
public void Load()
|
||||
{
|
||||
Logger.WriteLine("World Loading has not been implemented as of yet!");
|
||||
if (!Directory.Exists(this.Game.SavePaths.GetPath(DAL.DataTypes.Environments)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
String[] realmPaths = Directory.GetDirectories(this.Game.SavePaths.GetPath(DAL.DataTypes.Environments));
|
||||
|
||||
foreach (String realm in realmPaths)
|
||||
{
|
||||
String[] realms = Directory.GetFiles(realm);
|
||||
|
||||
foreach (String file in realms)
|
||||
{
|
||||
Realm r = new Realm(this.Game, String.Empty, String.Empty);
|
||||
r.Load(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Destroy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue