All of the classes that currently perform Save/Load operations now log when a Property failed to be loaded correctly.

This commit is contained in:
Scionwest_cp 2012-03-10 19:48:41 -08:00
parent 32210124e0
commit a6d346da3d
5 changed files with 28 additions and 49 deletions

View file

@ -167,11 +167,16 @@ namespace MudEngine.Game.Characters
try { this.Immovable = Convert.ToBoolean(this.SaveData.GetData("Immovable")); }
catch { this.LoadFailedMessage("Immovable"); }
this.Password = this.SaveData.GetData("Password");
try { this.Password = this.SaveData.GetData("Password"); }
catch { this.LoadFailedMessage("Password"); }
String role = this.SaveData.GetData("Role");
try
{
String role = this.SaveData.GetData("Role");
this.Role = GetRole(role);
this.Role = GetRole(role);
}
catch { this.LoadFailedMessage("Role"); }
}
#endregion