• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PRoConClient类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中PRoConClient的典型用法代码示例。如果您正苦于以下问题:C# PRoConClient类的具体用法?C# PRoConClient怎么用?C# PRoConClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PRoConClient类属于命名空间,在下文中一共展示了PRoConClient类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Initialize

        public void Initialize(PRoConApplication praApplication, PRoConClient prcClient) {
            this.m_praApplication = praApplication;
            foreach (Account accAccount in this.m_praApplication.AccountsList) {

                if (this.AccountPrivileges.Contains(accAccount.Name) == false) {
                    AccountPrivilege apPrivs = new AccountPrivilege(accAccount, new CPrivileges());
                    apPrivs.AccountPrivilegesChanged += new AccountPrivilege.AccountPrivilegesChangedHandler(apPrivs_AccountPrivilegesChanged);
                    this.AccountPrivileges.Add(apPrivs);
                }
                else {
                    this.AccountPrivileges[accAccount.Name].AccountPrivilegesChanged += new AccountPrivilege.AccountPrivilegesChangedHandler(apPrivs_AccountPrivilegesChanged);
                }

            }
            this.m_praApplication.AccountsList.AccountAdded += new AccountDictionary.AccountAlteredHandler(AccountsList_AccountAdded);
            this.m_praApplication.AccountsList.AccountRemoved += new AccountDictionary.AccountAlteredHandler(AccountsList_AccountRemoved);

            this.m_prcClient = prcClient;

            this.m_prcClient.SocketException += new PRoConClient.SocketExceptionHandler(m_prcClient_SocketException);
            this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure);
            this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed);
            this.m_prcClient.Game.Login += new FrostbiteClient.EmptyParamterHandler(m_prcClient_CommandLogin);

            this.ClientConnected += new LayerAccountHandler(PRoConLayer_ClientConnected);

            if (this.LayerEnabled == true && this.IsLayerOnline == false) {
                this.StartLayerListener();
            }
        }
开发者ID:ratdart,项目名称:Procon-1,代码行数:30,代码来源:PRoConLayer.cs


示例2: m_prcClient_GameTypeDiscovered

        private void m_prcClient_GameTypeDiscovered(PRoConClient sender) {

            this.Client.Game.TeamKillCountForKick += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillCountForKick);
            this.Client.Game.TeamKillValueForKick += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueForKick);
            this.Client.Game.TeamKillValueIncrease += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueIncrease);
            this.Client.Game.TeamKillValueDecreasePerSecond += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueDecreasePerSecond);
        }
开发者ID:ratdart,项目名称:Procon-1,代码行数:7,代码来源:uscServerSettingsTeamKills.cs


示例3: ChatConsole

        public ChatConsole(PRoConClient prcClient)
            : base()
        {
            this.m_prcClient = prcClient;

            this.FileHostNamePort = this.m_prcClient.FileHostNamePort;
            this.LoggingStartedPrefix = "Chat logging started";
            this.LoggingStoppedPrefix = "Chat logging stopped";
            this.FileNameSuffix = "chat";

            this.LogJoinLeaving = false;
            this.LogKills = false;
            this.Scrolling = true;
            this.DisplayTypeIndex = 0;
            this.DisplayTimeIndex = 0;

            this.MessageHistory = new Queue<ChatMessage>();

            this.m_prcClient.Game.Chat += new FrostbiteClient.RawChatHandler(m_prcClient_Chat);

            this.m_prcClient.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled);
            this.m_prcClient.Game.PlayerJoin += new FrostbiteClient.PlayerEventHandler(m_prcClient_PlayerJoin);
            this.m_prcClient.Game.PlayerLeft += new FrostbiteClient.PlayerLeaveHandler(m_prcClient_PlayerLeft);

            this.m_prcClient.ProconAdminSaying += new PRoConClient.ProconAdminSayingHandler(m_prcClient_ProconAdminSaying);
            this.m_prcClient.ProconAdminYelling += new PRoConClient.ProconAdminYellingHandler(m_prcClient_ProconAdminYelling);

            this.m_prcClient.ReadRemoteChatConsole += new PRoConClient.ReadRemoteConsoleHandler(m_prcClient_ReadRemoteChatConsole);
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:29,代码来源:ChatConsole.cs


示例4: Client_GameTypeDiscovered

        private void Client_GameTypeDiscovered(PRoConClient sender) {
            this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance);
            this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam);
            this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap);
            this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair);
            this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting);
            this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras);
            this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting);

            this.Client.Game.VehicleSpawnAllowed += new FrostbiteClient.IsEnabledHandler(Game_VehicleSpawnAllowed);
            this.Client.Game.VehicleSpawnDelay += new FrostbiteClient.LimitHandler(Game_VehicleSpawnDelay);
            this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage);
            this.Client.Game.NameTag += new FrostbiteClient.IsEnabledHandler(Game_NameTag);
            this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth);
            this.Client.Game.OnlySquadLeaderSpawn += new FrostbiteClient.IsEnabledHandler(Game_OnlySquadLeaderSpawn);
            this.Client.Game.UnlockMode += new FrostbiteClient.UnlockModeHandler(Game_UnlockMode);
            this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth);
            this.Client.Game.Hud += new FrostbiteClient.IsEnabledHandler(Game_Hud);
            this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime);
            this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount);
            this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount);
            this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime);
            this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter);
            this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout);
            this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(Game_IdleBanRounds);
            this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(Game_ServerMessage);

            this.Client.Game.ReservedSlotsListAggressiveJoin += new FrostbiteClient.IsEnabledHandler(Game_ReservedSlotsListAggressiveJoin);
            this.Client.Game.RoundLockdownCountdown += new FrostbiteClient.LimitHandler(Game_RoundLockdownCountdown);
            this.Client.Game.RoundWarmupTimeout += new FrostbiteClient.LimitHandler(Game_RoundWarmupTimeout);

            this.Client.Game.PremiumStatus += new FrostbiteClient.IsEnabledHandler(Game_PremiumStatus);
        }
开发者ID:ratdart,项目名称:Procon-1,代码行数:33,代码来源:uscServerSettingsConfigGeneratorBF3.cs


示例5: Client_GameTypeDiscovered

 private void Client_GameTypeDiscovered(PRoConClient sender) {
     this.InvokeIfRequired(() => {
         this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(m_prcClient_ServerName);
         this.Client.Game.BannerUrl += new FrostbiteClient.BannerUrlHandler(m_prcClient_BannerUrl);
         this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(m_prcClient_ServerDescription);
     });
 }
开发者ID:bensonk,项目名称:Procon-1,代码行数:7,代码来源:uscServerSettingsDetails.cs


示例6: Client_GameTypeDiscovered

        private void Client_GameTypeDiscovered(PRoConClient sender) {
            this.Client.Game.Ranked += new FrostbiteClient.IsEnabledHandler(Client_Ranked);
            this.Client.Game.Punkbuster += new FrostbiteClient.IsEnabledHandler(Client_Punkbuster);
            this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(Client_ServerName);
            this.Client.Game.GamePassword += new FrostbiteClient.PasswordHandler(Client_GamePassword);
            
            this.Client.Game.Hardcore += new FrostbiteClient.IsEnabledHandler(Client_Hardcore);
            
            //this.Client.Game.RankLimit += new FrostbiteClient.LimitHandler(Client_RankLimit);
            //this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance);
            this.Client.Game.FriendlyFire += new FrostbiteClient.IsEnabledHandler(Client_FriendlyFire);
            this.Client.Game.PlayerLimit += new FrostbiteClient.LimitHandler(Client_PlayerLimit);
            this.Client.Game.BannerUrl += new FrostbiteClient.BannerUrlHandler(Client_BannerUrl);
            this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(Client_ServerDescription);

            //this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam);
            //this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap);
            //this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair);
            //this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting);
            //this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras);
            //this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting);

            this.Client.Game.TeamKillCountForKick += new FrostbiteClient.LimitHandler(Client_TeamKillCountForKick);
            this.Client.Game.TeamKillValueForKick += new FrostbiteClient.LimitHandler(Client_TeamKillValueForKick);
            this.Client.Game.TeamKillValueIncrease += new FrostbiteClient.LimitHandler(Client_TeamKillValueIncrease);
            this.Client.Game.TeamKillValueDecreasePerSecond += new FrostbiteClient.LimitHandler(Client_TeamKillValueDecreasePerSecond);

            this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout);
            this.Client.Game.ProfanityFilter += new FrostbiteClient.IsEnabledHandler(Client_ProfanityFilter);

            this.Client.Game.LevelVariablesList += new FrostbiteClient.LevelVariableListHandler(Client_LevelVariablesList);

            this.Client.Game.ListPlaylists += new FrostbiteClient.ListPlaylistsHandler(Client_ListPlaylists);
            this.Client.Game.SupportedMaps += new FrostbiteClient.SupportedMapsHandler(Client_SupportedMaps);
        }
开发者ID:phelom,项目名称:Procon-1,代码行数:35,代码来源:uscServerSettingsConfigGenerator.cs


示例7: Client_GameTypeDiscovered

        private void Client_GameTypeDiscovered(PRoConClient sender) {

            this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(m_prcClient_ServerName);
            this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(m_prcClient_ServerDescription);
            this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(m_prcClient_ServerMessage);
            
        }
开发者ID:NSGod,项目名称:Procon-1,代码行数:7,代码来源:uscServerSettingsDetailsBF4.cs


示例8: ListsSettings

        public ListsSettings(PRoConClient prcClient)
        {
            this.m_isManualBansVisible = false;

            this.m_prcClient = prcClient;
            this.m_prcClient.Game.PlaylistSet += new FrostbiteClient.PlaylistSetHandler(m_prcClient_PlaylistSet);
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:7,代码来源:ListsSettings.cs


示例9: Client_GameTypeDiscovered

        private void Client_GameTypeDiscovered(PRoConClient sender) {
            this.InvokeIfRequired(() => {
                this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras);
                // deprecated R-5 this.Client.Game.AllUnlocksUnlocked += new FrostbiteClient.IsEnabledHandler(Game_AllUnlocksUnlocked);
                this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance);
                this.Client.Game.BuddyOutline += new FrostbiteClient.IsEnabledHandler(Game_BuddyOutline);
                this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage);

                this.Client.Game.HudCrosshair += new FrostbiteClient.IsEnabledHandler(Game_HudCrosshair);
                this.Client.Game.HudEnemyTag += new FrostbiteClient.IsEnabledHandler(Game_HudEnemyTag);
                this.Client.Game.HudExplosiveIcons += new FrostbiteClient.IsEnabledHandler(Game_HudExplosiveIcons);
                this.Client.Game.HudGameMode += new FrostbiteClient.IsEnabledHandler(Game_HudGameMode);
                this.Client.Game.HudHealthAmmo += new FrostbiteClient.IsEnabledHandler(Game_HudHealthAmmo);
                this.Client.Game.HudMinimap += new FrostbiteClient.IsEnabledHandler(Game_HudMinimap);

                this.Client.Game.HudObiturary += new FrostbiteClient.IsEnabledHandler(Game_HudObiturary);
                this.Client.Game.HudPointsTracker += new FrostbiteClient.IsEnabledHandler(Game_HudPointsTracker);
                this.Client.Game.HudUnlocks += new FrostbiteClient.IsEnabledHandler(Game_HudUnlocks);

                this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(Game_IdleBanRounds);
                this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout);
                this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam);

                this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime);
                this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime);
                this.Client.Game.Playlist += new FrostbiteClient.PlaylistSetHandler(Game_Playlist);
                this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth);
                this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount);
                this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount);

                this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth);
                this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter);
                this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(Game_ServerMessage);
            });
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:35,代码来源:uscServerSettingsConfigGeneratorMOHW.cs


示例10: m_prcClient_GameTypeDiscovered

        private void m_prcClient_GameTypeDiscovered(PRoConClient sender) {
            this.InvokeIfRequired(() => {
                this.m_client.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(m_client_ProconPrivileges);
                this.m_client.FullTextChatModerationListList += new PRoConClient.FullTextChatModerationListListHandler(m_client_FullTextChatModerationListList);

                this.m_client.Game.TextChatModerationListAddPlayer += new FrostbiteClient.TextChatModerationListAddPlayerHandler(Game_TextChatModerationListAddPlayer);
                this.m_client.Game.TextChatModerationListRemovePlayer += new FrostbiteClient.TextChatModerationListRemovePlayerHandler(Game_TextChatModerationListRemovePlayer);
            });
        }
开发者ID:EBassie,项目名称:Procon-1,代码行数:9,代码来源:uscTextChatModerationListcs.cs


示例11: EventCaptures

        public EventCaptures(PRoConClient prcClient)
        {
            this.CapturedEvents = new NotificationList<CapturableEvents>();

            foreach (CapturableEvents item in Enum.GetValues(typeof(CapturableEvents))) {
                this.CapturedEvents.Add(item);
            }

            this.CapturedEvents.ItemAdded += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemAdded);
            this.CapturedEvents.ItemRemoved += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemRemoved);

            this.LogEntries = new Queue<CapturedEvent>();

            this.m_isOptionsVisible = false;
            this.m_iMaximumDisplayedEvents = 200;

            if ((this.m_prcClient = prcClient) != null) {
                this.FileHostNamePort = this.m_prcClient.FileHostNamePort;
                this.LoggingStartedPrefix = "Events logging started";
                this.LoggingStoppedPrefix = "Events logging stopped";
                this.FileNameSuffix = "events";

                this.m_prcClient.ConnectAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectAttempt);
                this.m_prcClient.ConnectSuccess += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectSuccess);
                this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure);
                this.m_prcClient.SocketException += new PRoConClient.SocketExceptionHandler(m_prcClient_SocketException);
                this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed);

                this.m_prcClient.Login += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogin);
                this.m_prcClient.Logout += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogout);
                this.m_prcClient.LoginFailure += new PRoConClient.AuthenticationFailureHandler(m_prcClient_CommandLoginFailure);

                this.m_prcClient.Game.LevelStarted += new FrostbiteClient.EmptyParamterHandler(m_prcClient_LevelStarted);
                this.m_prcClient.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcClient_LoadingLevel);

                this.m_prcClient.Game.PlayerJoin += new FrostbiteClient.PlayerEventHandler(m_prcClient_PlayerJoin);
                this.m_prcClient.Game.PlayerLeft += new FrostbiteClient.PlayerLeaveHandler(m_prcClient_PlayerLeft);
                this.m_prcClient.Game.PlayerKicked += new FrostbiteClient.PlayerKickedHandler(m_prcClient_PlayerKicked);

                this.m_prcClient.Game.PlayerKickedByAdmin += new FrostbiteClient.PlayerKickedHandler(Game_PlayerKickedByAdmin);
                this.m_prcClient.Game.PlayerKilledByAdmin += new FrostbiteClient.PlayerKilledByAdminHandler(Game_PlayerKilledByAdmin);
                this.m_prcClient.Game.PlayerMovedByAdmin += new FrostbiteClient.PlayerMovedByAdminHandler(Game_PlayerMovedByAdmin);

                this.m_prcClient.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled);
                this.m_prcClient.PunkbusterPlayerUnbanned += new PRoConClient.PunkbusterBanHandler(m_prcClient_PlayerUnbanned);

                this.m_prcClient.Game.BanListAdd += new FrostbiteClient.BanListAddHandler(m_prcClient_BanListAdd);
                this.m_prcClient.Game.BanListRemove += new FrostbiteClient.BanListRemoveHandler(m_prcClient_BanListRemove);

                this.m_prcClient.CompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_CompilingPlugins);
                this.m_prcClient.RecompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_RecompilingPlugins);
                this.m_prcClient.PluginsCompiled += new PRoConClient.EmptyParamterHandler(m_prcClient_PluginsCompiled);

                this.m_prcClient.Game.PlayerChangedTeam += new FrostbiteClient.PlayerTeamChangeHandler(m_prcClient_PlayerChangedTeam);
                this.m_prcClient.Game.PlayerChangedSquad += new FrostbiteClient.PlayerTeamChangeHandler(m_prcClient_PlayerChangedSquad);
            }
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:57,代码来源:EventCaptures.cs


示例12: m_prcClient_GameTypeDiscovered

        private void m_prcClient_GameTypeDiscovered(PRoConClient sender) {
            this.m_prcClient.EventsLogging.CapturedEvents.ItemAdded += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemAdded);
            this.m_prcClient.EventsLogging.CapturedEvents.ItemRemoved += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemRemoved);

            this.m_prcClient.EventsLogging.MaximumDisplayedEventsChange += new EventCaptures.MaximumDisplayedEventsChangeHandler(LoggedEvents_MaximumDisplayedEventsChange);
            this.m_prcClient.EventsLogging.OptionsVisibleChange += new EventCaptures.OptionsVisibleChangeHandler(LoggedEvents_OptionsHiddenChange);

            this.m_prcClient.EventsLogging.LoggedEvent += new EventCaptures.LoggedEventHandler(LoggedEvents_LoggedEvent);
        }
开发者ID:NSGod,项目名称:Procon-1,代码行数:9,代码来源:uscEventsPanel.cs


示例13: item_GameTypeDiscovered

 private void item_GameTypeDiscovered(PRoConClient sender) {
     sender.ConnectionClosed += new PRoConClient.EmptyParamterHandler(sender_ConnectionClosed);
     sender.ConnectionFailure += new PRoConClient.FailureHandler(sender_ConnectionFailure);
     sender.ConnectSuccess += new PRoConClient.EmptyParamterHandler(sender_ConnectSuccess);
     sender.Login += new PRoConClient.EmptyParamterHandler(sender_Login);
     sender.LoginAttempt += new PRoConClient.EmptyParamterHandler(sender_LoginAttempt);
     sender.LoginFailure += new PRoConClient.AuthenticationFailureHandler(sender_LoginFailure);
     sender.Logout += new PRoConClient.EmptyParamterHandler(sender_Logout);
 }
开发者ID:ratdart,项目名称:Procon-1,代码行数:9,代码来源:BasicConsole.cs


示例14: SetConnection

 public void SetConnection(PRoConClient prcClient) {
     if ((this.m_prcClient = prcClient) != null) {
         if (this.m_prcClient.Game != null) {
             this.m_prcClient_GameTypeDiscovered(prcClient);
         }
         else {
             this.m_prcClient.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(m_prcClient_GameTypeDiscovered);
         }
     }
 }
开发者ID:NSGod,项目名称:Procon-1,代码行数:10,代码来源:uscEventsPanel.cs


示例15: Client_GameTypeDiscovered

 private void Client_GameTypeDiscovered(PRoConClient sender) {
     this.Client.Game.RankLimit += new FrostbiteClient.LimitHandler(Client_RankLimit);
     this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance);
     this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam);
     this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap);
     this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair);
     this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting);
     this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras);
     this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting);
 }
开发者ID:ratdart,项目名称:Procon-1,代码行数:10,代码来源:uscServerSettingsConfigGeneratorBFBC2.cs


示例16: m_prcClient_GameTypeDiscovered

        private void m_prcClient_GameTypeDiscovered(PRoConClient sender) {
            this.InvokeIfRequired(() => {
                this.Client.Game.TextChatModerationMode += new FrostbiteClient.TextChatModerationModeHandler(Game_TextChatModerationMode);
                this.Client.Game.TextChatSpamTriggerCount += new FrostbiteClient.LimitHandler(Game_TextChatSpamTriggerCount);
                this.Client.Game.TextChatSpamDetectionTime += new FrostbiteClient.LimitHandler(Game_TextChatSpamDetectionTime);
                this.Client.Game.TextChatSpamCoolDownTime += new FrostbiteClient.LimitHandler(Game_TextChatSpamCoolDownTime);

                this.Client.Game.ResponseError += new FrostbiteClient.ResponseErrorHandler(Game_ResponseError);
            });
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:10,代码来源:uscServerSettingsTextChatModeration.cs


示例17: PRoConLayerClient

        public PRoConLayerClient(FrostbiteLayerConnection newConnection, PRoConApplication praApplication, PRoConClient prcClient)
        {
            this.IsLoggedIn = false;
            this.GzipCompression = false;

            this.ProconEventsUid = String.Empty;

            if (prcClient.Game != null) {

                if (prcClient.Game is BFBC2Client) {
                    this.Game = new BFBC2LayerClient(newConnection);
                }
                else if (prcClient.Game is MoHClient) {
                    this.Game = new MoHLayerClient(newConnection);
                }

                this.m_requestDelegates = new Dictionary<string, RequestPacketHandler>() {
                    { "procon.login.username", this.DispatchProconLoginUsernameRequest  },
                    { "procon.registerUid", this.DispatchProconRegisterUidRequest  },
                    { "procon.version", this.DispatchProconVersionRequest  },
                    { "procon.vars", this.DispatchProconVarsRequest  },
                    { "procon.privileges", this.DispatchProconPrivilegesRequest  },
                    { "procon.compression", this.DispatchProconCompressionRequest  },

                    { "procon.account.listAccounts", this.DispatchProconAccountListAccountsRequest  },
                    { "procon.account.listLoggedIn", this.DispatchProconAccountListLoggedInRequest  },
                    { "procon.account.create", this.DispatchProconAccountCreateRequest  },
                    { "procon.account.delete", this.DispatchProconAccountDeleteRequest  },
                    { "procon.account.setPassword", this.DispatchProconAccountSetPasswordRequest  },

                    { "procon.battlemap.deleteZone", this.DispatchProconBattlemapDeleteZoneRequest  },
                    { "procon.battlemap.createZone", this.DispatchProconBattlemapCreateZoneRequest  },
                    { "procon.battlemap.modifyZoneTags", this.DispatchProconBattlemapModifyZoneTagsRequest  },
                    { "procon.battlemap.modifyZonePoints", this.DispatchProconBattlemapModifyZonePointsRequest  },
                    { "procon.battlemap.listZones", this.DispatchProconBattlemapListZonesRequest  },

                    { "procon.layer.setPrivileges", this.DispatchProconLayerSetPrivilegesRequest  },

                    { "procon.plugin.listLoaded", this.DispatchProconPluginListLoadedRequest  },
                    { "procon.plugin.listEnabled", this.DispatchProconPluginListEnabledRequest  },
                    { "procon.plugin.enable", this.DispatchProconPluginEnableRequest  },
                    { "procon.plugin.setVariable", this.DispatchProconPluginSetVariableRequest  },

                    { "procon.exec", this.DispatchProconExecRequest },
                    { "procon.packages.install", this.DispatchProconPackagesInstallRequest },

                    { "procon.admin.say", this.DispatchProconAdminSayRequest },
                    { "procon.admin.yell", this.DispatchProconAdminYellRequest },
                };

                if ((this.m_praApplication = praApplication) != null && (this.m_prcClient = prcClient) != null) {
                    this.RegisterEvents();
                }
            }
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:55,代码来源:PRoConLayerClient.cs


示例18: SetConnection

        public override void SetConnection(PRoConClient prcClient) {
            base.SetConnection(prcClient);

            if (this.Client != null) {
                if (this.Client.Game != null) {
                    this.Client_GameTypeDiscovered(prcClient);
                }
                else {
                    this.Client.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(Client_GameTypeDiscovered);
                }
            }
        }
开发者ID:ratdart,项目名称:Procon-1,代码行数:12,代码来源:uscServerSettingsDetailsBF3.cs


示例19: SetConnection

        public override void SetConnection(Core.Remote.PRoConClient prcClient) {
            base.SetConnection(prcClient);

            if ((this.m_client = prcClient) != null) {
                if (this.m_client.Game != null) {
                    this.m_prcClient_GameTypeDiscovered(prcClient);
                }
                else {
                    this.m_client.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(m_prcClient_GameTypeDiscovered);
                }
            }
        }
开发者ID:EBassie,项目名称:Procon-1,代码行数:12,代码来源:uscTextChatModerationListcs.cs


示例20: PunkbusterConsole

        public PunkbusterConsole(PRoConClient prcClient)
            : base()
        {
            this.m_prcClient = prcClient;

            this.FileHostNamePort = this.m_prcClient.FileHostNamePort;
            this.LoggingStartedPrefix = "Punkbuster logging started";
            this.LoggingStoppedPrefix = "Punkbuster logging stopped";
            this.FileNameSuffix = "punkbuster";

            this.m_prcClient.Game.PunkbusterMessage += new FrostbiteClient.PunkbusterMessageHandler(m_prcClient_PunkbusterMessage);
            this.m_prcClient.Game.SendPunkbusterMessage += new FrostbiteClient.SendPunkBusterMessageHandler(m_prcClient_SendPunkbusterMessage);
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:13,代码来源:PunkbusterConsole.cs



注:本文中的PRoConClient类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PSDataCollection类代码示例发布时间:2022-05-24
下一篇:
C# PROCESS_INFORMATION类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap