using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QueryMaster
{
///
/// Serves as base class for all EventArgs.
///
[Serializable]
public class LogEventArgs : EventArgs
{
///
/// Gets Timestamp.
///
public DateTime Timestamp { get; internal set; }
}
///
/// Provides data for Exception event.
///
[Serializable]
public class ExceptionEventArgs : LogEventArgs
{
///
/// Gets Log line.
///
public string LogLine { get; internal set; }
}
///
/// Provides data for Server cvar event.
///
[Serializable]
public class CvarEventArgs : LogEventArgs
{
///
/// Gets Cvar name.
///
public string Cvar { get; internal set; }
///
/// Gets Cvar Value.
///
public string Value { get; internal set; }
}
///
/// Provides data log start event.
///
[Serializable]
public class LogStartEventArgs : LogEventArgs
{
///
/// Gets Filename.
///
public string FileName { get; internal set; }
///
/// Gets Game name.
///
public string Game { get; internal set; }
///
/// Gets Protocol version.
///
public string Protocol { get; internal set; }
///
/// Gets Release version.
///
public string Release { get; internal set; }
///
/// Gets Build version.
///
public string Build { get; internal set; }
}
///
/// Provides data for map loaded event.
///
[Serializable]
public class MapLoadEventArgs : LogEventArgs
{
///
/// Gets Map name.
///
public string MapName { get; internal set; }
}
///
/// Provides data for map started event.
///
[Serializable]
public class MapStartEventArgs : MapLoadEventArgs
{
///
/// Get map CRC value.
///
public string MapCRC { get; internal set; }
}
///
/// Provides data for rcon event.
///
[Serializable]
public class RconEventArgs : LogEventArgs
{
///
/// Gets Challenge Id of remote client.
///
public string Challenge { get; internal set; }
///
/// Gets Password.
///
public string Password { get; internal set; }
///
/// Gets command sent by remote client.
///
public string Command { get; internal set; }
///
/// Gets IP-Address of client.
///
public string Ip { get; internal set; }
///
/// Gets Port number of client
///
public ushort Port { get; internal set; }
///
/// Returns true if password sent is valid.
///
public bool IsValid { get; internal set; }
}
///
/// Provides data for servername event.
///
[Serializable]
public class ServerNameEventArgs : LogEventArgs
{
///
/// Gets name of server.
///
public string Name { get; internal set; }
}
///
/// Provides data for server say event.
///
[Serializable]
public class ServerSayEventArgs : LogEventArgs
{
///
/// Gets the message said by server.
///
public string Message { get; internal set; }
}
///
/// Provides data for Playervalidate,playerenteredgame and player disconnected event.
///
[Serializable]
public class PlayerEventArgs : LogEventArgs
{
///
/// Gets Player information.
///
public PlayerInfo Player { get; internal set; }
}
///
/// Provides data for player connect event.
///
[Serializable]
public class ConnectEventArgs : PlayerEventArgs
{
///
/// Gets IP-Address of client.
///
public string Ip { get; internal set; }
///
/// Gets Port number of client.
///
public ushort Port { get; internal set; }
}
///
/// Provides data for playerkicked event.
///
[Serializable]
public class KickEventArgs : PlayerEventArgs
{
///
/// Gets the name of the admin who kicked the player.
///
public string Kicker { get; internal set; }
///
/// Gets the message sent as a reason for the kick.
///
public string Message { get; internal set; }
}
///
/// Provides data for suicide event.
///
[Serializable]
public class SuicideEventArgs : PlayerEventArgs
{
///
/// Gets the weapon name.
///
public string Weapon { get; internal set; }
}
///
/// Provides data for team selection event.
///
[Serializable]
public class TeamSelectionEventArgs : PlayerEventArgs
{
///
/// Gets the team name.
///
public string Team { get; internal set; }
}
///
/// Provides data for role selection event.
///
[Serializable]
public class RoleSelectionEventArgs : PlayerEventArgs
{
///
/// Gets the role name.
///
public string Role { get; internal set; }
}
///
/// Provides data for player name change event.
///
[Serializable]
public class NameChangeEventArgs : PlayerEventArgs
{
///
/// Gets player's new name.
///
public string NewName { get; internal set; }
}
///
/// Provides data for player killed event.
///
[Serializable]
public class KillEventArgs : PlayerEventArgs
{
///
/// Gets Victim player's info.
///
public PlayerInfo Victim { get; internal set; }
///
/// Gets the name of the weapon used.
///
public string Weapon { get; internal set; }
}
///
/// Provides data for player injured event.
///
[Serializable]
public class InjureEventArgs : KillEventArgs
{
///
/// Gets damage.
///
public string Damage { get; internal set; }
}
///
/// Provides data for PlayerOnPLayerTriggered event.
///
[Serializable]
public class PlayerOnPlayerEventArgs : LogEventArgs
{
///
/// Gets info about the player who triggered an action.
///
public PlayerInfo Source { get; internal set; }
///
/// Gets info about the player on whom the ation was triggered.
///
public PlayerInfo Target { get; internal set; }
///
/// Gets the name of the action performed.
///
public string Action { get; internal set; }
}
///
/// Provides data for Player action event.
///
[Serializable]
public class PlayerActionEventArgs : PlayerEventArgs
{
///
/// Gets the name of the action performed.
///
public string Action { get; internal set; }
///
/// Gets additional data present in the message.
///
public string ExtraInfo { get; internal set; }
}
///
/// Provides data for team action event.
///
[Serializable]
public class TeamActionEventArgs : LogEventArgs
{
///
/// Gets the name of the team who triggered an action.
///
public string Team { get; internal set; }
///
/// Gets the name of the action performed.
///
public string Action { get; internal set; }
}
///
/// Provides data for WorldAction event.
///
[Serializable]
public class WorldActionEventArgs : LogEventArgs
{
///
/// Gets the name of the action performed.
///
public string Action { get; internal set; }
}
///
/// Provides data for Say and TeamSay events.
///
[Serializable]
public class ChatEventArgs : PlayerEventArgs
{
///
/// Gets the message said by player.
///
public string Message { get; internal set; }
}
///
/// Provides data for TeamAlliance event.
///
[Serializable]
public class TeamAllianceEventArgs : LogEventArgs
{
///
/// Gets the name of 1st team.
///
public string Team1 { get; internal set; }
///
/// Gets the name of 2nd team.
///
public string Team2 { get; internal set; }
}
///
/// Provides data for TeamScoreReport event.
///
[Serializable]
public class TeamScoreReportEventArgs : LogEventArgs
{
///
/// Gets the name of team.
///
public string Team { get; internal set; }
///
/// Gets the score of team.
///
public string Score { get; internal set; }
///
/// Gets the player count.
///
public string PlayerCount { get; internal set; }
///
/// Gets the additional data present in the message.
///
public string ExtraInfo { get; internal set; }
}
///
/// Provides data for PrivateChat event.
///
[Serializable]
public class PrivateChatEventArgs : LogEventArgs
{
///
/// Gets Sender Player's info.
///
public PlayerInfo Sender { get; internal set; }
///
/// Gets Receiver Player's info.
///
public PlayerInfo Receiver { get; internal set; }
///
/// Get the message sent by sender.
///
public string Message { get; internal set; }
}
///
/// Provides data for PlayerScoreReport event.
///
[Serializable]
public class PlayerScoreReportEventArgs : PlayerEventArgs
{
///
/// Gets player score.
///
public string Score { get; internal set; }
///
/// Gets the additional data present in the message.
///
public string ExtraInfo { get; internal set; }
}
///
/// Provides data for WeaponSelect and WeaponAcquired event.
///
[Serializable]
public class WeaponEventArgs : PlayerEventArgs
{
///
/// Gets name of weapon.
///
public string Weapon { get; internal set; }
}
}