public static void registerHandler(Opcodes opcode, NetworkMessageCallback cb) { Handler handler = new Handler(); handler.callback = cb; _handlers[opcode] = handler; }
public static void registerErrorHandler(ErrorCode error, GameErrorCallback cb) { Handler handler = new Handler(); handler.callback = cb; _error_handlers[error] = handler; }