update
This commit is contained in:
parent
d97cc253fa
commit
1b9c52d6c6
@ -45,10 +45,11 @@ func (this *ModuleRobot_Viking) DoPipeline(robot IRobot) (err error) {
|
|||||||
errdata *pb.ErrorData
|
errdata *pb.ErrorData
|
||||||
)
|
)
|
||||||
// 获取爬塔信息
|
// 获取爬塔信息
|
||||||
if _, errdata := robot.SendMessage("viking", "getlist", &pb.VikingGetListReq{}); errdata != nil {
|
if resp, errdata = robot.SendMessage("viking", "getlist", &pb.VikingGetListReq{}); errdata != nil {
|
||||||
err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message))
|
err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.viking = resp.(*pb.VikingGetListResp).Data
|
||||||
heromodule := robot.GetModule(comm.ModuleHero).(*ModuleRobot_Hero)
|
heromodule := robot.GetModule(comm.ModuleHero).(*ModuleRobot_Hero)
|
||||||
heros := heromodule.getbattlehero()
|
heros := heromodule.getbattlehero()
|
||||||
var bossid int32
|
var bossid int32
|
||||||
|
Loading…
Reference in New Issue
Block a user