protected override void ReadComponentSchema(ComponentSchema schema) { Strength = schema.GetValue("strength", 10); Dexterity = schema.GetValue("dexterity", 10); Constitution = schema.GetValue("constitution", 10); Intelligence = schema.GetValue("intelligence", 10); Wisdom = schema.GetValue("wisdom", 10); Charisma = schema.GetValue("charisma", 10); Class = schema.GetValue <ObjectSchema>("class").Instantiate <CharacterClass>(); }
protected override void ReadComponentSchema(ComponentSchema schema) { RaceName = schema.GetValue("race_name", "none"); }