This commit is contained in:
aozhiwei 2024-09-20 14:33:44 +08:00
parent 466f03f1ed
commit c6e03f42ce

View File

@ -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)
}