예제 #1
0
            public static void ProcessLocalData(JPacketType data)
            {
                IProcesser processor = JLogicHelper.getProcessor(data);

                if (null == processor)
                {
                    return;
                }

                processor.run(JLogicUserData.Data);
            }
예제 #2
0
            public static void ProcessNetworkData(JNetworkData data)
            {
                JPacketType packetType = JNetworkHelper.GetNetworkPacketType(data);

                if (!JNetworkHelper.IsValidPacketType(packetType))
                {
                    return;
                }

                IProcesser processor = JLogicHelper.getProcessor(packetType);

                if (null == processor)
                {
                    return;
                }

                processor.run(JLogicUserData.Data);
            }