예제 #1
0
        public CharacterBO NewCharacter(string _name, string _class, int _ac, int _str, int _dex, int _con, int _intel, int _wis, int _char, string _desc, int _Sid)
        {
            int         _characterID = dataContext.AddCharacter(_name, _class, _ac, _str, _dex, _con, _intel, _wis, _char, _desc, _Sid);
            CharacterBO rval         = new CharacterBO();

            rval.CharacterID  = _characterID;
            rval.Name         = _name;
            rval.Class        = _class;
            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;
            return(rval);
        }