1
This commit is contained in:
parent
466f03f1ed
commit
c6e03f42ce
@ -4,6 +4,7 @@ import (
|
||||
"q5"
|
||||
"cs"
|
||||
"main/common"
|
||||
"github.com/golang/protobuf/proto"
|
||||
)
|
||||
|
||||
type historyMgr struct {
|
||||
@ -33,6 +34,14 @@ func (this *historyMgr) PushLastBattleInfo(hum common.Player) {
|
||||
}
|
||||
msg := new(cs.SMPushLastBattleInfo)
|
||||
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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user