예제 #1
0
        public static void registerHandler(Opcodes opcode, NetworkMessageCallback cb)
        {
            Handler handler = new Handler();
            handler.callback = cb;

            _handlers[opcode] = handler;
        }
예제 #2
0
        public static void registerErrorHandler(ErrorCode error, GameErrorCallback cb)
        {
            Handler handler = new Handler();
            handler.callback = cb;

            _error_handlers[error] = handler;
        }