Exemplo n.º 1
0
        public static void HandleFraqBootInfo(CSDT_FRAPBOOT_INFO fbid)
        {
            if (Singleton <FrameSynchr> .GetInstance().SetKeyFrameIndex(fbid.dwKFrapsNo))
            {
                Singleton <GameReplayModule> .get_instance().SetKFraqNo(fbid.dwKFrapsNo);

                if (fbid.bNum > 0)
                {
                    Singleton <GameReplayModule> .get_instance().CacheRecord(fbid);
                }
                for (int i = 0; i < (int)fbid.bNum; i++)
                {
                    CSDT_FRAPBOOT_DETAIL cSDT_FRAPBOOT_DETAIL = fbid.astBootInfo[i];
                    switch (cSDT_FRAPBOOT_DETAIL.bType)
                    {
                    case 1:
                        FrameWindow.HandleClientClientSyncCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stCCBoot());
                        break;

                    case 2:
                        FrameWindow.HandleClientServerSyncCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stCSBoot());
                        break;

                    case 3:
                        FrameWindow.HandleClientStateSyncCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stAcntState());
                        break;

                    case 4:
                        FrameWindow.HandleAssistChgSyncCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stAssistState());
                        break;

                    case 5:
                        FrameWindow.HandleAIChgSyncCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stAiState());
                        break;

                    case 6:
                        FrameWindow.HandleGameOverCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stGameOverNtf());
                        break;

                    case 7:
                        FrameWindow.HandleGamePauseCommand(fbid.dwKFrapsNo, cSDT_FRAPBOOT_DETAIL.stDetail.get_stPause());
                        break;
                    }
                }
            }
            fbid.Release();
        }
Exemplo n.º 2
0
        public static void HandleFraqBootInfo(CSDT_FRAPBOOT_INFO fbid)
        {
            if (Singleton <FrameSynchr> .GetInstance().SetKeyFrameIndex(fbid.dwKFrapsNo))
            {
                Singleton <GameReplayModule> .instance.SetKFraqNo(fbid.dwKFrapsNo);

                if (fbid.bNum > 0)
                {
                    Singleton <GameReplayModule> .instance.CacheRecord(fbid);
                }
                for (int i = 0; i < fbid.bNum; i++)
                {
                    CSDT_FRAPBOOT_DETAIL csdt_frapboot_detail = fbid.astBootInfo[i];
                    switch (csdt_frapboot_detail.bType)
                    {
                    case 1:
                        HandleClientClientSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stCCBoot);
                        break;

                    case 2:
                        HandleClientServerSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stCSBoot);
                        break;

                    case 3:
                        HandleClientStateSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stAcntState);
                        break;

                    case 4:
                        HandleAssistChgSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stAssistState);
                        break;

                    case 5:
                        HandleAIChgSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stAiState);
                        break;

                    case 6:
                        HandleGameOverCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stGameOverNtf);
                        break;
                    }
                }
            }
            fbid.Release();
        }
Exemplo n.º 3
0
        private void HandleFraqBootInfo(CSDT_FRAPBOOT_INFO fbid)
        {
            this.RecordPing(fbid, false);
            if (GameSettings.enableReplay)
            {
                this.RecordReplay(fbid);
            }
            if (Singleton <FrameSynchr> .GetInstance().SetKeyFrameIndex(fbid.dwKFrapsNo))
            {
                for (int i = 0; i < fbid.bNum; i++)
                {
                    CSDT_FRAPBOOT_DETAIL csdt_frapboot_detail = fbid.astBootInfo[i];
                    switch (csdt_frapboot_detail.bType)
                    {
                    case 1:
                        this.HandleClientClientSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stCCBoot);
                        break;

                    case 2:
                        this.HandleClientServerSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stCSBoot);
                        break;

                    case 3:
                        this.HandleClientStateSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stAcntState);
                        break;

                    case 4:
                        this.HandleAssistChgSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stAssistState);
                        break;

                    case 5:
                        this.HandleAIChgSyncCommand(fbid.dwKFrapsNo, csdt_frapboot_detail.stDetail.stAiState);
                        break;
                    }
                }
            }
        }