Add game clock commands, command completions and Cyrene login tooling

This commit is contained in:
CAtlas0784 committed 2026-10-30 15:02:09 +07:00
1 parent 1fa9504176
commit 67a819a4d3
21 files changed
+1194 -7

No files matched your search

@@ -1,7 +1,7 @@
package gameserver
import (
"time"
"gac-hkrpg-go/internal/common"
goproto "gac-hkrpg-go/protocol/proto"
)
@@ -23,7 +23,11 @@ func init() {
rsp.Retcode = 0
rsp.CurTimezone = 8
rsp.LoginRandom = req.LoginRandom
rsp.ServerTimestampMs = uint64(time.Now().UnixMilli())
now, err := common.GameTime()
if err != nil {
return err
}
rsp.ServerTimestampMs = uint64(now.UnixMilli())
rsp.Stamina = 240
rsp.BasicInfo = &goproto.PlayerBasicInfo{
Nickname: playerName,
+5 -1
View File
@@ -42,7 +42,11 @@ func init() {
PacketLog("CW_GM deferred: " + err.Error())
}
rsp.ClientTimeMs = req.ClientTimeMs
rsp.ServerTimeMs = req.ClientTimeMs
now, err := common.GameTime()
if err != nil {
return err
}
rsp.ServerTimeMs = uint64(now.UnixMilli())
var finalData []byte
finalData = append(finalData, heartbeatLua...)