1
This commit is contained in:
parent
2e1e52eee2
commit
d91a08d105
@ -37,8 +37,25 @@ type team struct {
|
|||||||
matchTick int64
|
matchTick int64
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this* robot) FillMFTeamMember(*cs.MFTeamMember) {
|
func (this* robot) GetAccountId() string {
|
||||||
|
return "6517_2006_" + q5.ToString(this.meta.GetId())
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this* robot) FillMFTeamMember(member_pb *cs.MFTeamMember) {
|
||||||
|
member_pb.AccountId = proto.String(this.GetAccountId())
|
||||||
|
member_pb.Name = proto.String(this.meta.GetName())
|
||||||
|
//member_pb.Id = proto.Int32(this.sortIdx)
|
||||||
|
member_pb.IsLeader = proto.Int32(0)
|
||||||
|
member_pb.SpecSkill = proto.Int32(this.specSkill)
|
||||||
|
{
|
||||||
|
member_pb.Hero = &cs.MFHero{}
|
||||||
|
member_pb.Hero.HeroId = proto.Int32(this.meta.GetHeroId())
|
||||||
|
member_pb.Hero.Quality = proto.Int32(0)
|
||||||
|
}
|
||||||
|
member_pb.State = proto.Int32(0)
|
||||||
|
member_pb.Online = proto.Int32(1)
|
||||||
|
member_pb.Permission = proto.Int32(0)
|
||||||
|
member_pb.IsReady = proto.Int32(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *team) init(copyIdx int32, zoneId int32, nodeId int32,
|
func (this *team) init(copyIdx int32, zoneId int32, nodeId int32,
|
||||||
@ -388,7 +405,7 @@ func (this *team) genStartGameInfo() {
|
|||||||
ele2 := q5.NewSliceElement(&ele.Members)
|
ele2 := q5.NewSliceElement(&ele.Members)
|
||||||
robot := t.robotList[robotIdx]
|
robot := t.robotList[robotIdx]
|
||||||
robotIdx++
|
robotIdx++
|
||||||
ele2.AccountId = "6517_2006_" + q5.ToString(robot.meta.GetId())
|
ele2.AccountId = robot.GetAccountId()
|
||||||
ele2.SpecSkill = robot.specSkill
|
ele2.SpecSkill = robot.specSkill
|
||||||
ele2.HeroUniId = ""
|
ele2.HeroUniId = ""
|
||||||
ele2.IsAndroid = 1
|
ele2.IsAndroid = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user