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:
parent
32210124e0
commit
a6d346da3d
5 changed files with 28 additions and 49 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue