public ICharacter Create(string name, ICharacterType avatar) { var avatarHandle = itemService.Create(avatar); var c = new Character(generator.Next(), avatarHandle, name); AddTrait <ICharacterTraits>(c, new CharacterTraits(avatar)); return(c); }
public Character(ICharacterType characterType) { Type = characterType; }
public CharacterTraits(ICharacterType avatar) : this(avatar.Strength, avatar.Vitality, avatar.HitPoints) { }