示例#1
0
        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);
        }
示例#2
0
 public Character(ICharacterType characterType)
 {
     Type = characterType;
 }
示例#3
0
 public CharacterTraits(ICharacterType avatar) : this(avatar.Strength, avatar.Vitality, avatar.HitPoints)
 {
 }