override protected void UpdateObjectState() { this.persistentProperties = new Hashtable(); this.persistentProperties.Add("Inventory", baseInventory.MakeSerializableInventory()); this.persistentProperties.Add( "GameFlags", this.gameFlagsHit.Select(f => (int)f).ToList() ); SaveObjectState(); }