private void HandleAssistChgSyncCommand(uint dwFrqNo, CSDT_FRAPBOOT_ASSISTSTATE assistChgState) { IFrameCommand command = null; FrameCommand <AssistStateChgCommand> command2 = FrameCommandFactory.CreateFrameCommand <AssistStateChgCommand>(); command2.cmdData.m_chgType = assistChgState.bType; command2.cmdData.m_aiPlayerID = assistChgState.dwAiPlayerObjID; command2.cmdData.m_masterPlayerID = assistChgState.dwMasterObjID; command = command2; if (command != null) { command.playerID = assistChgState.dwAiPlayerObjID; command.frameNum = dwFrqNo; Singleton <FrameSynchr> .GetInstance().PushFrameCommand(command); } }
private static void HandleAssistChgSyncCommand(uint dwFrqNo, CSDT_FRAPBOOT_ASSISTSTATE assistChgState) { FrameCommand <AssistStateChgCommand> frameCommand = FrameCommandFactory.CreateSCSyncFrameCommand <AssistStateChgCommand>(); frameCommand.cmdData.m_chgType = assistChgState.bType; frameCommand.cmdData.m_aiPlayerID = assistChgState.dwAiPlayerObjID; frameCommand.cmdData.m_masterPlayerID = assistChgState.dwMasterObjID; IFrameCommand frameCommand2 = frameCommand; if (frameCommand2 != null) { frameCommand2.playerID = assistChgState.dwAiPlayerObjID; frameCommand2.frameNum = dwFrqNo; Singleton <FrameSynchr> .GetInstance().PushFrameCommand(frameCommand2); } else if ((FrameWindow._frameExceptionCounter += 1) <= 30) { BuglyAgent.ReportException(new Exception("CreateFrameCommandException"), "create assistChange frame command error!"); } }
private static void HandleAssistChgSyncCommand(uint dwFrqNo, CSDT_FRAPBOOT_ASSISTSTATE assistChgState) { IFrameCommand command = null; FrameCommand <AssistStateChgCommand> command2 = FrameCommandFactory.CreateFrameCommand <AssistStateChgCommand>(); command2.cmdData.m_chgType = assistChgState.bType; command2.cmdData.m_aiPlayerID = assistChgState.dwAiPlayerObjID; command2.cmdData.m_masterPlayerID = assistChgState.dwMasterObjID; command = command2; if (command != null) { command.playerID = assistChgState.dwAiPlayerObjID; command.frameNum = dwFrqNo; Singleton <FrameSynchr> .GetInstance().PushFrameCommand(command); } else { _frameExceptionCounter = (byte)(_frameExceptionCounter + 1); if (_frameExceptionCounter <= 30) { BuglyAgent.ReportException(new Exception("CreateFrameCommandException"), "create assistChange frame command error!"); } } }