gate到robot转发模式

This commit is contained in:
flswld committed 2023-06-15 11:13:03 +08:00
1 parent 8d039dee06
commit 12a8381c43
34 files changed
+3132 -440

No files matched your search

File diff suppressed because it is too large. Load diff
+7 -2
View File
@@ -4,6 +4,7 @@ import (
"reflect"
"sync"
"hk4e/common/config"
"hk4e/pkg/logger"
"hk4e/protocol/proto"
@@ -29,11 +30,15 @@ func NewCmdProtoMap() (r *CmdProtoMap) {
r.cmdNameCmdIdMap = make(map[string]uint16)
r.cmdIdProtoObjCacheMap = make(map[uint16]*sync.Pool)
r.cmdIdProtoObjFastNewMap = make(map[uint16]func() any)
r.registerAllMessage()
if !config.GetConfig().Hk4e.ForwardModeEnable {
r.registerMessage()
} else {
r.registerAllMessage()
}
return r
}
func (c *CmdProtoMap) registerAllMessage() {
func (c *CmdProtoMap) registerMessage() {
// 登录
c.regMsg(DoSetPlayerBornDataNotify, func() any { return new(proto.DoSetPlayerBornDataNotify) }) // 注册账号通知 新号播放开场动画
c.regMsg(SetPlayerBornDataReq, func() any { return new(proto.SetPlayerBornDataReq) }) // 注册账号请求
+2
View File
@@ -43,6 +43,8 @@ message GetPlayerTokenReq {
string country_code = 5;
uint32 lang = 892;
string psn_id = 13;
string gate_ticket = 9998;
uint32 un_x = 9999;
}
message GetPlayerTokenRsp {
+1
View File
@@ -1200,6 +1200,7 @@ message QueryCurrRegionHttpRsp {
bytes client_secret_key = 11;
bytes region_custom_config_encrypted = 12;
bytes client_region_custom_config_encrypted = 13;
string gate_ticket = 14;
oneof detail {
ForceUpdateInfo force_udpate = 4;
StopServerInfo stop_server = 5;