修正协议名,与通用GC协议名保持一致,防止协议代理转换出现问题

This commit is contained in:
flswld committed 2023-10-06 23:45:48 +08:00
1 parent 8fb8ab1b11
commit 4e8161098b
7 files changed
+2092 -2060

No files matched your search

+2 -1
View File
@@ -1,10 +1,11 @@
package gdconf
import (
"hk4e/pkg/logger"
"os"
"strconv"
"hk4e/pkg/logger"
"github.com/hjson/hjson-go/v4"
)
+1
View File
@@ -2,6 +2,7 @@ package game
import (
"encoding/base64"
"hk4e/common/constant"
"hk4e/gdconf"
"hk4e/gs/model"
+3 -2
View File
@@ -3,11 +3,12 @@ package game
import (
"errors"
"fmt"
"reflect"
"sort"
"hk4e/gs/model"
"hk4e/pkg/logger"
"hk4e/protocol/proto"
"reflect"
"sort"
)
// 游戏服务器插件管理器
+2 -1
View File
@@ -2,13 +2,14 @@ package game
import (
"fmt"
"math"
"hk4e/common/constant"
"hk4e/gs/model"
"hk4e/pkg/logger"
"hk4e/pkg/random"
"hk4e/protocol/cmd"
"hk4e/protocol/proto"
"math"
)
const (
+2080 -2052
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -111,8 +111,8 @@ func (c *CmdProtoMap) registerMessage() {
c.regMsg(ExitSceneWeatherAreaNotify, func() any { return new(proto.ExitSceneWeatherAreaNotify) }) // 离开场景天气区域通知
c.regMsg(SetSceneWeatherAreaReq, func() any { return new(proto.SetSceneWeatherAreaReq) }) // 设置场景天气区域请求
c.regMsg(SetSceneWeatherAreaRsp, func() any { return new(proto.SetSceneWeatherAreaRsp) }) // 设置场景天气区域响应
c.regMsg(SceneWeatherForecastReq, func() any { return new(proto.SceneWeatherForecastReq) }) // 场景天气预测请求
c.regMsg(SceneWeatherForecastRsp, func() any { return new(proto.SceneWeatherForecastRsp) }) // 场景天气预测响应
c.regMsg(SceneWeatherForcastReq, func() any { return new(proto.SceneWeatherForcastReq) }) // 场景天气预测请求
c.regMsg(SceneWeatherForcastRsp, func() any { return new(proto.SceneWeatherForcastRsp) }) // 场景天气预测响应
c.regMsg(WorldPlayerLocationNotify, func() any { return new(proto.WorldPlayerLocationNotify) }) // 世界玩家位置通知
c.regMsg(ScenePlayerLocationNotify, func() any { return new(proto.ScenePlayerLocationNotify) }) // 场景玩家位置通知
c.regMsg(SceneForceUnlockNotify, func() any { return new(proto.SceneForceUnlockNotify) }) // 场景强制解锁通知
+2 -2
View File
@@ -1582,7 +1582,7 @@ message UnlockTransPointRsp {
int32 retcode = 12;
}
message SceneWeatherForecastReq {
message SceneWeatherForcastReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
@@ -1595,7 +1595,7 @@ message SceneWeatherForecastReq {
uint32 weather_area_id = 15;
}
message SceneWeatherForecastRsp {
message SceneWeatherForcastRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;