refactor(logic): 重构逻辑模块
- 移除了 player.go 中的 SendPackBytes 方法 - 将 TomeeHeader 中的 CMDID 改为 CMD,类型从 uint32 改为 EnumCommandID - 删除了 controller 文件夹下的 service.go 和 login.go - 新增了 login 文件夹下的 PlayerLoginService.go - 优化了 main.go 中的 Start 函数,使用 controller.Recv 作为回调
This commit is contained in:
@@ -9,7 +9,7 @@ type EnumValue struct {
|
||||
Value EnumCommandID
|
||||
Name string
|
||||
}
|
||||
type EnumCommandID int
|
||||
type EnumCommandID uint32
|
||||
|
||||
func Isexist(t any, value EnumCommandID) bool {
|
||||
return enum.Contains(CommandID, value)
|
||||
|
||||
Reference in New Issue
Block a user