Exemple #1
0
        public UserCharacterBO NewUserCharacter(string _name, string _class, int _classLvl, int _hp, int _ac, int _str, int _dex, int _con, int _intel, int _wis, int _char, string _desc, int _Sid, int _Uid)
        {
            int             _characterID = dataContext.AddUserCharacter(_name, _class, _classLvl, _hp, _ac, _str, _dex, _con, _intel, _wis, _char, _desc, _Sid, _Uid);
            UserCharacterBO rval         = new UserCharacterBO();

            rval.UserCharacterID = _characterID;
            rval.Name            = _name;
            rval.Class           = _class;
            rval.ClassLevel      = _classLvl;
            rval.HitPoints       = _hp;
            rval.AC           = _ac;
            rval.Strength     = _str;
            rval.Dexterity    = _dex;
            rval.Constitution = _con;
            rval.Intelligence = _intel;
            rval.Wisdom       = _wis;
            rval.Charisma     = _char;
            rval.Description  = _desc;
            rval.SeriesID_FK  = _Sid;
            rval.UserID_FK    = _Uid;
            return(rval);
        }
Exemple #2
0
 public void DeleteUserCharacter(UserCharacterBO useChar)
 {
     DeleteUserCharacter(useChar.UserCharacterID);
 }
Exemple #3
0
 public void UpdateUserCharacter(UserCharacterBO uChar)
 {
     dataContext.UpdateUserCharacter(uChar.UserCharacterID, uChar.Name, uChar.Class, uChar.ClassLevel, uChar.HitPoints, uChar.AC, uChar.Strength, uChar.Dexterity, uChar.Constitution, uChar.Intelligence, uChar.Wisdom, uChar.Charisma, uChar.Description, uChar.SeriesID_FK, uChar.UserID_FK);
 }