Exemplo n.º 1
0
 private void SetupEvents()
 {
     __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(WardentUnhandled);
     __WhisperReceived     = new ChatMessageEventHandler(WhisperReceived);
     __WhisperSent         = new ChatMessageEventHandler(WhisperSent);
 }
Exemplo n.º 2
0
 private void SetupEvents()
 {
     __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(WardentUnhandled);
     __WhisperReceived = new ChatMessageEventHandler(WhisperReceived);
     __WhisperSent = new ChatMessageEventHandler(WhisperSent);
 }
Exemplo n.º 3
0
        private void ProcessEventSetup()
        {
            __UserJoined = new UserEventHandler(UserJoined);
            __UserLeft = new UserEventHandler(UserLeft);
            __UserShown = new UserEventHandler(UserShown);
            __JoinedChannel = new ServerChatEventHandler(JoinedChannel);
            __UserFlagsUpdated = new UserEventHandler(UserFlagsUpdated);
            __Disconnected = Disconnected;

            m_client.RegisterUserFlagsChangedNotification(Priority.Low, __UserFlagsUpdated);
            m_client.RegisterUserJoinedNotification(Priority.Low, __UserJoined);
            m_client.RegisterUserLeftNotification(Priority.Low, __UserLeft);
            m_client.RegisterUserShownNotification(Priority.Low, __UserShown);
            m_client.RegisterJoinedChannelNotification(Priority.Low, __JoinedChannel);
            m_client.RegisterDisconnectedNotification(Priority.Low, __Disconnected);
            m_client.RegisterClanMembershipReceivedNotification(Priority.Low, ClanMembershipStatusChanged);
        }
Exemplo n.º 4
0
        private void ProcessEventSetup()
        {
            __UserJoined       = new UserEventHandler(UserJoined);
            __UserLeft         = new UserEventHandler(UserLeft);
            __UserShown        = new UserEventHandler(UserShown);
            __JoinedChannel    = new ServerChatEventHandler(JoinedChannel);
            __UserFlagsUpdated = new UserEventHandler(UserFlagsUpdated);
            __Disconnected     = Disconnected;

            m_client.RegisterUserFlagsChangedNotification(Priority.Low, __UserFlagsUpdated);
            m_client.RegisterUserJoinedNotification(Priority.Low, __UserJoined);
            m_client.RegisterUserLeftNotification(Priority.Low, __UserLeft);
            m_client.RegisterUserShownNotification(Priority.Low, __UserShown);
            m_client.RegisterJoinedChannelNotification(Priority.Low, __JoinedChannel);
            m_client.RegisterDisconnectedNotification(Priority.Low, __Disconnected);
            m_client.RegisterClanMembershipReceivedNotification(Priority.Low, ClanMembershipStatusChanged);
        }