Update GaCy-GO

This commit is contained in:
CAtlas0784 committed 2026-10-28 18:54:43 +07:00
1 parent da8a32f60d
commit 0cbe460e49
345 files changed
+98202 -77559

No files matched your search

+9
View File
@@ -168,6 +168,15 @@ func (s *Session) Consume(data []byte) error {
// Send marshals a proto response and pushes it through KCP.
func (s *Session) Send(msg proto.Message) error {
name := string(msg.ProtoReflect().Descriptor().Name())
switch name {
case "GridFightGetDataScRsp", "GridFightStartGamePlayScRsp", "GridFightSyncUpdateResultScNotify", "GridFightSettleNotify",
"GridFightEnterBattleStageScRsp", "GridFightEndBattleStageNotify", "GridFightGetArchiveScRsp":
catalog, err := common.LoadCurrencyWarsCatalog()
if err != nil {
return err
}
cwProjectRoleIDs(msg, catalog)
}
cmdID, ok := goproto.CmdIDByName[name]
if !ok {
return fmt.Errorf("no cmd id registered for %s", name)