当前位置: 首页>>代码示例>>C#>>正文


C# Remote.PRoConClient类代码示例

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


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

示例1: ConnectionConsole

        public ConnectionConsole(PRoConClient prcClient) : base() {
            Client = prcClient;

            FileHostNamePort = Client.FileHostNamePort;
            LoggingStartedPrefix = "Console logging started";
            LoggingStoppedPrefix = "Console logging stopped";
            FileNameSuffix = "console";

            LogDebugDetails = false;
            LogEventsConnection = false;
            DisplayConnection = true;
            DisplayPunkbuster = true;
            ConScrolling = true;
            PBScrolling = true;

            Client.Game.Connection.PacketQueued += new FrostbiteConnection.PacketQueuedHandler(m_prcClient_PacketQueued);
            Client.Game.Connection.PacketDequeued += new FrostbiteConnection.PacketQueuedHandler(m_prcClient_PacketDequeued);
            Client.Game.Connection.PacketSent += new FrostbiteConnection.PacketDispatchHandler(m_prcClient_PacketSent);
            Client.Game.Connection.PacketReceived += new FrostbiteConnection.PacketDispatchHandler(m_prcClient_PacketRecieved);
            Client.Game.Connection.PacketCacheIntercept += new FrostbiteConnection.PacketCacheDispatchHandler(Connection_PacketCacheIntercept);

            Client.ConnectAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectAttempt);
            Client.ConnectSuccess += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectSuccess);

            Client.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure);
            Client.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed);

            Client.LoginAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLoginAttempt);
            Client.Login += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogin);
            Client.LoginFailure += new PRoConClient.AuthenticationFailureHandler(m_prcClient_CommandLoginFailure);
            Client.Logout += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogout);
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:32,代码来源:ConnectionConsole.cs

示例2: ChatConsole

        public ChatConsole(PRoConClient prcClient) : base() {
            Client = prcClient;

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

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

            MessageHistory = new Queue<ChatMessage>();

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

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

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

            Client.ReadRemoteChatConsole += new PRoConClient.ReadRemoteConsoleHandler(m_prcClient_ReadRemoteChatConsole);
        }
开发者ID:NSGod,项目名称:Procon-1,代码行数:27,代码来源:ChatConsole.cs

示例3: MapGeometry

        public MapGeometry(PRoConClient prcClient) {
            MapZones = new MapZoneDictionary();

            if ((Client = prcClient) != null) {
                Client.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcClient_ServerInfo);
                Client.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcClient_LoadingLevel);
                Client.Game.LevelLoaded += new FrostbiteClient.LevelLoadedHandler(m_prcClient_LevelLoaded);
                Client.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled);
            }
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:10,代码来源:MapGeometry.cs

示例4: SetConnection

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

示例5: PunkbusterConsole

        public PunkbusterConsole(PRoConClient client) : base() {
            Client = client;

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

            Client.Game.PunkbusterMessage += new FrostbiteClient.PunkbusterMessageHandler(m_prcClient_PunkbusterMessage);
            Client.Game.SendPunkbusterMessage += new FrostbiteClient.SendPunkBusterMessageHandler(m_prcClient_SendPunkbusterMessage);
        }
开发者ID:EBassie,项目名称:Procon-1,代码行数:11,代码来源:PunkbusterConsole.cs

示例6: m_prcClient_GameTypeDiscovered

        private void m_prcClient_GameTypeDiscovered(PRoConClient sender) {
            this.InvokeIfRequired(() => {
                this.Client.Game.TeamKillCountForKick += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillCountForKick);
                this.Client.Game.TeamKillValueForKick += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueForKick);
                this.Client.Game.TeamKillKickForBan += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillKickForBan);
                this.Client.Game.TeamKillValueIncrease += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueIncrease);
                this.Client.Game.TeamKillValueDecreasePerSecond += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueDecreasePerSecond);

                this.Client.Game.BF4preset += new FrostbiteClient.BF4presetHandler(Tab_BF4preset);
            });
        }
开发者ID:markrlomas,项目名称:Procon-1,代码行数:11,代码来源:uscServerSettingsTeamKillsBFHL.cs

示例7: SetConnection

        public void SetConnection(PRoConApplication praApplication, PRoConClient prcClient) {
            if ((this._application = praApplication) != null && (this._client = prcClient) != null) {

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

示例8: m_prcClient_GameTypeDiscovered

        private void m_prcClient_GameTypeDiscovered(PRoConClient sender) {
            this.InvokeIfRequired(() => {
                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.ScrollingEnabledChange += new EventCaptures.ScrollingEnabledChangeHandler(LoggedEvents_ScrollingEnabledChange);

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

示例9: SetConnection

        public void SetConnection(PRoConClient prcClient) {
            if ((this.m_prcClient = prcClient) != null) {
                this.m_prcClient.ConnectAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectAttempt);
                this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed);
                this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure);
                this.m_prcClient.SocketException += new PRoConClient.SocketExceptionHandler(m_prcClient_SocketException);
                this.m_prcClient.Logout += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogout);
                this.m_prcClient.LoginFailure += new PRoConClient.AuthenticationFailureHandler(m_prcClient_CommandLoginFailure);
                this.m_prcClient.Login += new PRoConClient.EmptyParamterHandler(m_prcClient_Login);

                this.m_prcClient.AutomaticallyConnectChanged += new PRoConClient.AutomaticallyConnectHandler(m_prcClient_AutomaticallyConnectChanged);
            }
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:13,代码来源:uscLoginPanel.cs

示例10: PluginConsole

        public PluginConsole(PRoConClient prcClient) : base() {
            Client = prcClient;

            LogEntries = new Queue<LogEntry>();

            FileHostNamePort = Client.FileHostNamePort;
            LoggingStartedPrefix = "Plugin logging started";
            LoggingStoppedPrefix = "Plugin logging stopped";
            FileNameSuffix = "plugin";

            Client.CompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_CompilingPlugins);
            Client.RecompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_RecompilingPlugins);
        }
开发者ID:EBassie,项目名称:Procon-1,代码行数:13,代码来源:PluginConsole.cs

示例11: m_prcClient_PlayerKilled

        private void m_prcClient_PlayerKilled(PRoConClient sender, Kill kKillerVictimDetails) {
            float trespassArea = 0.0F;

            foreach (MapZoneDrawing zone in new List<MapZoneDrawing>(MapZones)) {
                if (System.String.Compare(CurrentMapFileName, zone.LevelFileName, System.StringComparison.OrdinalIgnoreCase) == 0) {
                    if ((trespassArea = zone.TrespassArea(kKillerVictimDetails.KillerLocation, 14.14F)) > 0.0F) {
                        if (MapZoneTrespassed != null) {
                            this.MapZoneTrespassed(kKillerVictimDetails.Killer, ZoneAction.Kill, new MapZone(zone.UID, zone.LevelFileName, zone.Tags.ToString(), zone.ZonePolygon, true), kKillerVictimDetails.KillerLocation, trespassArea, kKillerVictimDetails);
                        }
                    }

                    if ((trespassArea = zone.TrespassArea(kKillerVictimDetails.VictimLocation, 14.14F)) > 0.0F) {
                        if (MapZoneTrespassed != null) {
                            this.MapZoneTrespassed(kKillerVictimDetails.Victim, ZoneAction.Death, new MapZone(zone.UID, zone.LevelFileName, zone.Tags.ToString(), zone.ZonePolygon, true), kKillerVictimDetails.VictimLocation, trespassArea, kKillerVictimDetails);
                        }
                    }
                }
            }
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:19,代码来源:MapGeometry.cs

示例12: SetConnection

        public void SetConnection(PRoConClient prcClient) {
            if ((this.m_prcClient = prcClient) != null) {
                this.uscPlugins.SetConnection(prcClient);

                this.m_prcClient.RemoteAccountLoggedIn += new PRoConClient.RemoteAccountLoginStatusHandler(m_prcClient_RemoteAccountLoggedIn);
                this.m_prcClient.RemoteAccountCreated += new PRoConClient.RemoteAccountHandler(m_prcClient_RemoteAccountCreated);
                this.m_prcClient.RemoteAccountChangePassword += new PRoConClient.EmptyParamterHandler(m_prcClient_RemoteAccountChangePassword);
                this.m_prcClient.RemoteAccountDeleted += new PRoConClient.RemoteAccountHandler(m_prcClient_RemoteAccountDeleted);
                this.m_prcClient.RemoteAccountAltered += new PRoConClient.RemoteAccountAlteredHandler(m_prcClient_RemoteAccountAltered);

                this.m_prcClient.RemoteLoadedPlugins += new PRoConClient.RemoteLoadedPluginsHandler(m_prcClient_RemoteLoadedPlugins);
                this.m_prcClient.RemoteEnabledPlugins += new PRoConClient.RemoteEnabledPluginsHandler(m_prcClient_RemoteEnabledPlugins);
                this.m_prcClient.RemotePluginLoaded += new PRoConClient.RemotePluginLoadedHandler(m_prcClient_RemotePluginLoaded);
                this.m_prcClient.RemotePluginEnabled += new PRoConClient.RemotePluginEnabledHandler(m_prcClient_RemotePluginEnabled);
                this.m_prcClient.RemotePluginVariables += new PRoConClient.RemotePluginVariablesHandler(m_prcClient_RemotePluginVariables);
                this.m_prcClient.ReadRemotePluginConsole += new PRoConClient.ReadRemoteConsoleHandler(m_prcClient_ReadRemotePluginConsole);

                this.m_prcClient.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(m_prcClient_ProconPrivileges);
            }
        }
开发者ID:bensonk,项目名称:Procon-1,代码行数:20,代码来源:uscParentLayerControl.cs

示例13: Connections_ConnectionAdded

        private void Connections_ConnectionAdded(PRoConClient item) {
            item.ConnectionClosed += new PRoConClient.EmptyParamterHandler(item_ConnectionClosed);
            item.ConnectAttempt += new PRoConClient.EmptyParamterHandler(item_ConnectAttempt);
            item.Login += new PRoConClient.EmptyParamterHandler(item_Login);
            item.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(item_GameTypeDiscovered);

            this.UpdateConnections();
        }
开发者ID:markrlomas,项目名称:Procon-1,代码行数:8,代码来源:uscStartPage.cs

示例14: m_prcClient_ConnectAttempt

 private void m_prcClient_ConnectAttempt(PRoConClient sender) {
     this.InvokeIfRequired(() => { this.Connecting = true; });
 }
开发者ID:bensonk,项目名称:Procon-1,代码行数:3,代码来源:uscLoginPanel.cs

示例15: m_prcClient_CommandLogout

 private void m_prcClient_CommandLogout(PRoConClient sender) {
     this.InvokeIfRequired(() => { this.LoggedIn = false; });
 }
开发者ID:bensonk,项目名称:Procon-1,代码行数:3,代码来源:uscLoginPanel.cs


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