Beispiel #1
0
        public UserCharacterBO GetUserCharacter(int _userCharacterID)
        {
            UserCharacterDO retval = dataContext.GetUserCharacterDOByID(_userCharacterID);

            if (retval == null)
            {
                return(null);
            }
            return(new UserCharacterBO(retval));
        }
 public UserCharacterBO(UserCharacterDO _userCharacterDO)
 {
     UserCharacterID = _userCharacterDO.UserCharacterID;
     Name            = _userCharacterDO.Name;
     Class           = _userCharacterDO.Class;
     ClassLevel      = _userCharacterDO.ClassLevel;
     HitPoints       = _userCharacterDO.HitPoints;
     AC           = _userCharacterDO.AC;
     Strength     = _userCharacterDO.Strength;
     Dexterity    = _userCharacterDO.Dexterity;
     Constitution = _userCharacterDO.Constitution;
     Intelligence = _userCharacterDO.Intelligence;
     Wisdom       = _userCharacterDO.Wisdom;
     Charisma     = _userCharacterDO.Charisma;
     Description  = _userCharacterDO.Description;
     SeriesID_FK  = _userCharacterDO.SeriesID_FK;
     UserID_FK    = _userCharacterDO.UserID_FK;
 }