public static void ProcessLocalData(JPacketType data) { IProcesser processor = JLogicHelper.getProcessor(data); if (null == processor) { return; } processor.run(JLogicUserData.Data); }
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); }