示例#1
0
        protected Character(CharacterDto initProperties)
            : base(initProperties)
        {
            if (Id == Guid.Empty)
            {
                Id = Guid.NewGuid();
            }


            if (Level == 0)
            {
                //TODO create leveling system
                Level        = 1;
                ExpNextLevel = 1000;
            }

            if (string.IsNullOrWhiteSpace(Name))
            {
                Name = GetType().Name;
            }
        }
 public IntelligenceCharacter(CharacterDto initProperties)
     : base(initProperties)
 {
 }
示例#3
0
 public StrengthCharacter(CharacterDto initProperties)
     : base(initProperties)
 {
 }
 public AgilityCharacter(CharacterDto initProperties)
     : base(initProperties)
 {
 }