GameData Changes

- when changing the gamedata files (add, delete, reload) it will reload all the gamedata files and repopulate the server managers.
- updated the viewmodels to check for valid class names.
This commit is contained in:
Brett Hewitson 2022-06-17 18:41:05 +10:00
parent 1bf04ed33e
commit 479e4a64dc
33 changed files with 427 additions and 305 deletions

View file

@ -44,10 +44,6 @@ namespace ServerManagerTool.Lib
}
}
public void UpdateForLocalization()
{
}
public void Update()
{
IsEnabled = this.Count > 0;
@ -160,7 +156,11 @@ namespace ServerManagerTool.Lib
public void Update()
{
ValidStatus = IsValid ? (GameData.HasItemForClass(ItemClassString) ? "Y" : "W") : "N";
ValidStatus = IsValid
? (GameData.HasItemForClass(ItemClassString)
? "Y"
: "W")
: "N";
}
}