1
This commit is contained in:
parent
ccfeb6d228
commit
de76c2330b
@ -68,6 +68,8 @@ func (this *player) init(req *pendingLoginRequest, rsp *common.LoginRsp){
|
||||
this.hero.specSkill = q5.ToInt32(rsp.Info.HeroInfo.SpecSkill)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.Wealth, &this.hero.wealth)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.TotalTimes, &this.hero.totalTimes)
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,6 +91,8 @@ func (this *player) againInit(req *pendingLoginRequest, rsp *common.LoginRsp){
|
||||
this.hero.specSkill = q5.ToInt32(rsp.Info.HeroInfo.SpecSkill)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.Wealth, &this.hero.wealth)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes)
|
||||
q5.DuckToSimple(rsp.Info.HeroInfo.TotalTimes, &this.hero.totalTimes)
|
||||
}
|
||||
}
|
||||
|
||||
@ -426,6 +430,8 @@ func (this *player) CMRefreshUser(hdr *f5.MsgHdr, msg *cs.CMRefreshUser) {
|
||||
this.hero.specSkill = q5.ToInt32(rspObj.Info.HeroInfo.SpecSkill)
|
||||
q5.DuckToSimple(rspObj.Info.HeroInfo.Wealth, &this.hero.wealth)
|
||||
q5.DuckToSimple(rspObj.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime)
|
||||
q5.DuckToSimple(rspObj.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes)
|
||||
q5.DuckToSimple(rspObj.Info.HeroInfo.TotalTimes, &this.hero.totalTimes)
|
||||
}
|
||||
if this.GetTeam() != nil {
|
||||
this.GetTeam().SendUpdateNotify()
|
||||
|
Loading…
x
Reference in New Issue
Block a user