Example #1
0
 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);
 }
Example #2
0
 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");
 }
Example #4
0
 public override void SetObjectState(SerializationState state)
 {
     RaceName = state.GetValue("race_name", "none");
 }