/// <summary> /// 设置玩家用户信息 /// </summary> public void SetUserInfo(user.UserInfoResponse Info) { if (Info == null) { return; } this.Name = Info.name; this.Level = Info.level; this.Exp = Info.exp; this.Coin = Info.coin; this.Wood = Info.wood; this.Stone = Info.stone; this.Steel = Info.steel; this.Diamond = Info.diamond; this.Sociatyid = Info.sociatyid; this.Physical = Info.physical; this.Uid = Info.uid; this.Decklevel = Info.decklevel; this.Crystal = Info.crystal; this.Pirate_ref_time = Info.pirate_ref_time; this.SkillPoints = Info.skillpoint; this.SkillPointTime = Info.skillpoint_time; this.Physical_time = Info.physical_time; this.Deblocking_flag = Info.deblocking_flag; this.AthleticsCoin = Info.athletics_money; this.GnomeShopTime = Info.gnomeshop_time; this.BlackShopTime = Info.blackshop_time; this.HeadID = Info.headid; this.HeadFrameID = Info.headframeid; this.HeadChartID = Info.headchartid; this.LastSignInTime = Info.lastsignin_time; this.SignInTimes = Info.signin_times; }
/// <summary> /// 606 获取玩家信息回应 /// </summary> public static bool Recv_USER_INFO_RESP(object Info) { if (Info == null) { return(false); } user.UserInfoResponse user_info = Info as user.UserInfoResponse; if (m_UserInfo == null) { m_UserInfo = new UserInfo(); } m_UserInfo.SetUserInfo(user_info); GlobalTimer.SetServerTime(user_info.login_time); GlobalTimer.SetBlackhopCloseTotal(m_UserInfo.BlackShopTime); GlobalTimer.SetGnomeShopCloseTotal(m_UserInfo.GnomeShopTime); return(true); }