Refactor how handlers encode messages

This commit is contained in:
Melledy
2025-10-30 19:40:09 -07:00
parent 00b77e80e1
commit da1856df50
73 changed files with 138 additions and 134 deletions

View File

@@ -242,7 +242,7 @@ public class AgentZoneHandler implements Handler {
var handler = new NetHandler() {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
return this.encodeMsg(failedAckId);
return PacketHelper.encodeMsg(failedAckId);
}
};

View File

@@ -42,7 +42,6 @@ public class UserSetDataHandler extends UserLoginHandler {
ctx.result("{\"Code\":200,\"Data\":{},\"Msg\":\"OK\"}");
}
@SuppressWarnings("unused")
private static class UserSetDataReqJson {
public String Key;
public String Value;