Esempio n. 1
0
        private void AddLogToRepository(Log log)
        {
            switch (log.Tag)
            {
            case LogType.ChangePlayerExp:
                ChangePlayerExpRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.CreatePlayer:
                CreatePlayerRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.CurrentSessionCount:
                SessionCountRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.EntryPlayer:
                EntryPlayerRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.Login:
                LoginRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.Logout:
                LogoutRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.SayChat:
                SayChatRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.UpdateParty:
                UpdatePartyRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.WhisperChat:
                WhisperChatRepository.Add(log, ref insertCount);
                processCount++;
                break;

            default:
                break;
            }
        }
        private void AddLogToRepository(Log log)
        {
            switch (log.Tag)
            {
            case LogType.ChangeCustomItem:
                ChangeCustomItemRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.ChangePackItem:
                ChangePackItemRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.ChangePalletItem:
                ChangePalletItemRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.CreatePlayer:
                CreatePlayerRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.LeavePlayer:
                LeavePlayerRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.Login:
                LoginRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.PingResults:
                PingResultsRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.ResponseFriend:
                ResponseFriendRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.ResponseInvitationParty:
                ResponseInvitationPartyRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.RuptureFriend:
                RuptureFriendRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.SendFriend:
                SendFriendRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.SendInvitationParty:
                SendInvitationPartyRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.SetAppOption:
                SetAppOptionRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.SetOpenType:
                SetOpenTypeRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.TutorialProgress:
                TutorialProgressRepository.Add(log, ref insertCount);
                processCount++;
                break;

            case LogType.UpdateParty:
                UpdatePartyRepository.Add(log, ref insertCount);
                processCount++;
                break;

            default:
                break;
            }
        }