Added valid check to prevent writing record if dino not selected.

This commit is contained in:
Brett Hewitson 2021-06-19 15:51:21 +10:00
parent 652442a30b
commit e66b29f0f5
4 changed files with 39 additions and 7 deletions

View file

@ -131,6 +131,11 @@ namespace ServerManagerTool.Lib
public string DisplayName => GameData.FriendlyItemNameForClass(ItemClassString);
public bool IsValid => !string.IsNullOrWhiteSpace(ItemClassString);
public override bool ShouldSave()
{
return IsValid;
}
}
[DataContract]