本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
示例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);
});
}
示例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);
}
}
}
示例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);
});
}
示例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);
}
}
示例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);
}
示例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);
}
}
}
}
}
示例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);
}
}
示例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();
}
示例14: m_prcClient_ConnectAttempt
private void m_prcClient_ConnectAttempt(PRoConClient sender) {
this.InvokeIfRequired(() => { this.Connecting = true; });
}
示例15: m_prcClient_CommandLogout
private void m_prcClient_CommandLogout(PRoConClient sender) {
this.InvokeIfRequired(() => { this.LoggedIn = false; });
}