public void SetObjectState(SerializationState state) { Strength = state.GetValue("strength", Strength); Dexterity = state.GetValue("dexterity", Dexterity); Constitution = state.GetValue("constitution", Constitution); Intelligence = state.GetValue("intelligence", Intelligence); Wisdom = state.GetValue("wisdom", Wisdom); Charisma = state.GetValue("charisma", Charisma); }
public override void SetObjectState(SerializationState state) { Strength = state.GetValue("strength", 10); Dexterity = state.GetValue("dexterity", 10); Constitution = state.GetValue("constitution", 10); Intelligence = state.GetValue("intelligence", 10); Wisdom = state.GetValue("wisdom", 10); Charisma = state.GetValue("charisma", 10); Class = state.GetState("class")?.Instantiate <CharacterClass>(); }
public void SetObjectState(SerializationState state) { ClassName = state.GetValue("class_name", "nothing"); }
public override void SetObjectState(SerializationState state) { RaceName = state.GetValue("race_name", "none"); }