Beispiel #1
0
 public ErrorCode SynUser_UserBaseInfo()
 {
     GSToGC.UserBaseInfo sUserBaseInfo = new GSToGC.UserBaseInfo
     {
         Nickname    = this.userDbData.szNickName,
         Name        = this.userDbData.szUserName,
         Sex         = this.userDbData.usrDBData.n16Sex,
         Curscore    = this.userDbData.usrDBData.n64Score,
         Curgold     = this.userDbData.usrDBData.n64Gold,
         Curdiamoand = this.userDbData.usrDBData.n64Diamond,
         Guid        = this.userDbData.usrDBData.un64ObjIdx,
         //todo
         //Mapid = GetBattleMgrInstance().GetBattleMapID( m_sUserBattleInfoEx.GetBattleID() ),
         //Battleid = m_sUserBattleInfoEx.GetBattleID(),
         Mapid       = 0,
         Battleid    = 0,
         Ifreconnect = false,
         Level       = this.userDbData.usrDBData.un8UserLv,
         Headid      = this.userDbData.usrDBData.un16HeaderID,
         VipLevel    = this.userDbData.usrDBData.un16VipLv,
         VipScore    = this.userDbData.usrDBData.vipScore,
         CurExp      = ( int )this.userDbData.usrDBData.un32UserCurLvExp
     };
     return(this.PostMsgToGC(sUserBaseInfo, ( int )GSToGC.MsgID.EMsgToGcfromGsNotifyUserBaseInfo));
 }
Beispiel #2
0
 public void OnReceiveUserBaseInfo(GSToGC.UserBaseInfo msg)
 {
     if (msg.nickname.Length > 1)
     {
         NextStateType = EGameStateType.Lobby;
     }
     else if (msg.guid > 0)
     {
         // 玩家没有昵称,进入补充玩家信息界面
         NextStateType = EGameStateType.UserInfo;
     }
 }
Beispiel #3
0
 public void SetGameBaseInfo(GSToGC.UserBaseInfo pMsg)
 {
     GameScore           = (ulong)pMsg.curscore;
     mGameUserDmd        = (UInt64)pMsg.curdiamoand;
     mGameUserGold       = (UInt64)pMsg.curgold;
     mGameUserName       = pMsg.name;
     GameUserNick        = pMsg.nickname;
     IsReconnect         = pMsg.ifreconnect;
     GameUserGUID        = pMsg.guid;
     GameBattleID        = pMsg.battleid;
     GameUserSex         = (byte)pMsg.sex;
     GameUserHead        = pMsg.headid;
     UserLevel           = (short)pMsg.level;
     GameUserExp         = pMsg.cur_exp;
     GameUserVipLevel    = pMsg.vip_level;
     GameUserVipIntegral = pMsg.vip_score;
 }
Beispiel #4
0
 public void SetGameBaseInfo(GSToGC.UserBaseInfo pMsg)
 {
     GameScore           = (ulong)pMsg.curscore;     //分数
     mGameUserDmd        = (UInt64)pMsg.curdiamoand; //当前钻石
     mGameUserGold       = (UInt64)pMsg.curgold;     //当前金币
     mGameUserName       = pMsg.name;                //名称
     GameUserNick        = pMsg.nickname;            //昵称
     IsReconnect         = pMsg.ifreconnect;         //是否是重新连接
     GameUserGUID        = pMsg.guid;                //用户id
     GameBattleID        = pMsg.battleid;            //战斗id
     GameUserSex         = (byte)pMsg.sex;           //性别
     GameUserHead        = pMsg.headid;              //头像id
     UserLevel           = (short)pMsg.level;        //用户等级
     GameUserExp         = pMsg.cur_exp;             //当前经验值
     GameUserVipLevel    = pMsg.vip_level;           //VIP_等级
     GameUserVipIntegral = pMsg.vip_score;           //Vip_成绩
 }
Beispiel #5
0
 public void SetGameBaseInfo(GSToGC.UserBaseInfo msg)
 {
 }