Beispiel #1
0
        private void SetupEventRegistration()
        {
            __ChannelDidNotExist = new ServerChatEventHandler(ChannelDidNotExist);
            __ChannelListReceived = new ChannelListEventHandler(ChannelListReceived);
            __ChannelWasFull = new ServerChatEventHandler(ChannelWasFull);
            __ChannelWasRestricted = new ServerChatEventHandler(ChannelWasRestricted);
            __ClientCheckFailed = new ClientCheckFailedEventHandler(ClientCheckFailed);
            __ClientCheckPassed = new EventHandler(ClientCheckPassed);
            __CommandSent = new InformationEventHandler(CommandSent);
            __Connected = new EventHandler(Connected);
            __Disconnected = new EventHandler(Disconnected);
            __EnteredChat = new EnteredChatEventHandler(EnteredChat);
            __Error = new ErrorEventHandler(Error);
            __Information = new InformationEventHandler(Information);
            __InformationReceived = new ServerChatEventHandler(InformationReceived);
            __JoinedChannel = new ServerChatEventHandler(JoinedChannel);
            __LoginFailed = new LoginFailedEventHandler(LoginFailed);
            __LoginSucceeded = new EventHandler(LoginSucceeded);
            __MessageSent = new ChatMessageEventHandler(MessageSent);
            __ServerBroadcast = new ServerChatEventHandler(ServerBroadcast);
            __ServerErrorReceived = new ServerChatEventHandler(m_client_ServerErrorReceived);
            __UserEmoted = new ChatMessageEventHandler(UserEmoted);
            __UserFlagsChanged = new UserEventHandler(UserFlagsChanged);
            __UserJoined = new UserEventHandler(UserJoined);
            __UserLeft = new UserEventHandler(UserLeft);
            __UserShown = new UserEventHandler(UserShown);
            __UserSpoke = new ChatMessageEventHandler(UserSpoke);
            __WardenUnhandled = new EventHandler(WardenUnhandled);
            __WhisperReceived = new ChatMessageEventHandler(WhisperReceived);
            __WhisperSent = new ChatMessageEventHandler(WhisperSent);
            __UserProfileReceived = new UserProfileEventHandler(UserProfileReceived);

            m_client.RegisterUserProfileReceivedNotification(Priority.Low, __UserProfileReceived);
            m_client.RegisterChannelDidNotExistNotification(Priority.Low, __ChannelDidNotExist);
            m_client.RegisterChannelListReceivedNotification(Priority.Low, __ChannelListReceived);
            m_client.RegisterChannelWasFullNotification(Priority.Low, __ChannelWasFull);
            m_client.RegisterChannelWasRestrictedNotification(Priority.Low, __ChannelWasRestricted);
            m_client.RegisterClientCheckFailedNotification(Priority.Low, __ClientCheckFailed);
            m_client.RegisterClientCheckPassedNotification(Priority.Low, __ClientCheckPassed);
            m_client.RegisterCommandSentNotification(Priority.Low, __CommandSent);
            m_client.RegisterConnectedNotification(Priority.Low, __Connected);
            m_client.RegisterDisconnectedNotification(Priority.Low, __Disconnected);
            m_client.RegisterEnteredChatNotification(Priority.Low, __EnteredChat);
            m_client.RegisterErrorNotification(Priority.Low, __Error);
            m_client.RegisterInformationNotification(Priority.Low, __Information);
            m_client.RegisterInformationReceivedNotification(Priority.Low, __InformationReceived);
            m_client.RegisterJoinedChannelNotification(Priority.Low, __JoinedChannel);
            m_client.RegisterLoginFailedNotification(Priority.Low, __LoginFailed);
            m_client.RegisterLoginSucceededNotification(Priority.Low, __LoginSucceeded);
            m_client.RegisterMessageSentNotification(Priority.Low, __MessageSent);
            m_client.RegisterServerBroadcastNotification(Priority.Low, __ServerBroadcast);
            m_client.RegisterServerErrorReceivedNotification(Priority.Low, __ServerErrorReceived);
            m_client.RegisterUserEmotedNotification(Priority.Low, __UserEmoted);
            m_client.RegisterUserFlagsChangedNotification(Priority.Low, __UserFlagsChanged);
            m_client.RegisterUserJoinedNotification(Priority.Low, __UserJoined);
            m_client.RegisterUserLeftNotification(Priority.Low, __UserLeft);
            m_client.RegisterUserShownNotification(Priority.Low, __UserShown);
            m_client.RegisterUserSpokeNotification(Priority.Low, __UserSpoke);
            m_client.RegisterWardenUnhandledNotification(Priority.Low, __WardenUnhandled);
            m_client.RegisterWhisperReceivedNotification(Priority.Low, __WhisperReceived);
            m_client.RegisterWhisperSentNotification(Priority.Low, __WhisperSent);
        }
Beispiel #2
0
        private void SetupEventRegistration()
        {
            __ChannelDidNotExist   = new ServerChatEventHandler(ChannelDidNotExist);
            __ChannelListReceived  = new ChannelListEventHandler(ChannelListReceived);
            __ChannelWasFull       = new ServerChatEventHandler(ChannelWasFull);
            __ChannelWasRestricted = new ServerChatEventHandler(ChannelWasRestricted);
            __ClientCheckFailed    = new ClientCheckFailedEventHandler(ClientCheckFailed);
            __ClientCheckPassed    = new EventHandler(ClientCheckPassed);
            __CommandSent          = new InformationEventHandler(CommandSent);
            __Connected            = new EventHandler(Connected);
            __Disconnected         = new EventHandler(Disconnected);
            __EnteredChat          = new EnteredChatEventHandler(EnteredChat);
            __Error               = new ErrorEventHandler(Error);
            __Information         = new InformationEventHandler(Information);
            __InformationReceived = new ServerChatEventHandler(InformationReceived);
            __JoinedChannel       = new ServerChatEventHandler(JoinedChannel);
            __LoginFailed         = new LoginFailedEventHandler(LoginFailed);
            __LoginSucceeded      = new EventHandler(LoginSucceeded);
            __MessageSent         = new ChatMessageEventHandler(MessageSent);
            __ServerBroadcast     = new ServerChatEventHandler(ServerBroadcast);
            __ServerErrorReceived = new ServerChatEventHandler(m_client_ServerErrorReceived);
            __UserEmoted          = new ChatMessageEventHandler(UserEmoted);
            __UserFlagsChanged    = new UserEventHandler(UserFlagsChanged);
            __UserJoined          = new UserEventHandler(UserJoined);
            __UserLeft            = new UserEventHandler(UserLeft);
            __UserShown           = new UserEventHandler(UserShown);
            __UserSpoke           = new ChatMessageEventHandler(UserSpoke);
            __WardenUnhandled     = new EventHandler(WardenUnhandled);
            __WhisperReceived     = new ChatMessageEventHandler(WhisperReceived);
            __WhisperSent         = new ChatMessageEventHandler(WhisperSent);
            __UserProfileReceived = new UserProfileEventHandler(UserProfileReceived);

            m_client.RegisterUserProfileReceivedNotification(Priority.Low, __UserProfileReceived);
            m_client.RegisterChannelDidNotExistNotification(Priority.Low, __ChannelDidNotExist);
            m_client.RegisterChannelListReceivedNotification(Priority.Low, __ChannelListReceived);
            m_client.RegisterChannelWasFullNotification(Priority.Low, __ChannelWasFull);
            m_client.RegisterChannelWasRestrictedNotification(Priority.Low, __ChannelWasRestricted);
            m_client.RegisterClientCheckFailedNotification(Priority.Low, __ClientCheckFailed);
            m_client.RegisterClientCheckPassedNotification(Priority.Low, __ClientCheckPassed);
            m_client.RegisterCommandSentNotification(Priority.Low, __CommandSent);
            m_client.RegisterConnectedNotification(Priority.Low, __Connected);
            m_client.RegisterDisconnectedNotification(Priority.Low, __Disconnected);
            m_client.RegisterEnteredChatNotification(Priority.Low, __EnteredChat);
            m_client.RegisterErrorNotification(Priority.Low, __Error);
            m_client.RegisterInformationNotification(Priority.Low, __Information);
            m_client.RegisterInformationReceivedNotification(Priority.Low, __InformationReceived);
            m_client.RegisterJoinedChannelNotification(Priority.Low, __JoinedChannel);
            m_client.RegisterLoginFailedNotification(Priority.Low, __LoginFailed);
            m_client.RegisterLoginSucceededNotification(Priority.Low, __LoginSucceeded);
            m_client.RegisterMessageSentNotification(Priority.Low, __MessageSent);
            m_client.RegisterServerBroadcastNotification(Priority.Low, __ServerBroadcast);
            m_client.RegisterServerErrorReceivedNotification(Priority.Low, __ServerErrorReceived);
            m_client.RegisterUserEmotedNotification(Priority.Low, __UserEmoted);
            m_client.RegisterUserFlagsChangedNotification(Priority.Low, __UserFlagsChanged);
            m_client.RegisterUserJoinedNotification(Priority.Low, __UserJoined);
            m_client.RegisterUserLeftNotification(Priority.Low, __UserLeft);
            m_client.RegisterUserShownNotification(Priority.Low, __UserShown);
            m_client.RegisterUserSpokeNotification(Priority.Low, __UserSpoke);
            m_client.RegisterWardenUnhandledNotification(Priority.Low, __WardenUnhandled);
            m_client.RegisterWhisperReceivedNotification(Priority.Low, __WhisperReceived);
            m_client.RegisterWhisperSentNotification(Priority.Low, __WhisperSent);
        }