1
This commit is contained in:
parent
466f03f1ed
commit
c6e03f42ce
@ -4,6 +4,7 @@ import (
|
|||||||
"q5"
|
"q5"
|
||||||
"cs"
|
"cs"
|
||||||
"main/common"
|
"main/common"
|
||||||
|
"github.com/golang/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type historyMgr struct {
|
type historyMgr struct {
|
||||||
@ -33,6 +34,14 @@ func (this *historyMgr) PushLastBattleInfo(hum common.Player) {
|
|||||||
}
|
}
|
||||||
msg := new(cs.SMPushLastBattleInfo)
|
msg := new(cs.SMPushLastBattleInfo)
|
||||||
q5.NewSlice(&msg.BattleList, 0, 10)
|
q5.NewSlice(&msg.BattleList, 0, 10)
|
||||||
|
for key, val := range(u.mapAndModeHash) {
|
||||||
|
mapId := int32(key)
|
||||||
|
modeId := int32(key)
|
||||||
|
p := new(cs.MFLastBattleInfo)
|
||||||
|
p.MapId = proto.Int32(mapId)
|
||||||
|
p.ModeId = proto.Int32(modeId)
|
||||||
|
p.StartTime = proto.Int32(val)
|
||||||
|
}
|
||||||
hum.SendMsg(msg)
|
hum.SendMsg(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user