Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user