using System;
namespace SAMP.API.EventData {
public class PlayerDeathEventArgs : EventArgs {
#region Class Variables
private Player
m_qKiller;
private int
m_iReason;
#endregion
#region Constructor
///
/// Creates a new PlayerDeathEventArgs object.
///
/// The player who killed the player who died. NULL if none.
/// The ID of the reason for the player's death.
public PlayerDeathEventArgs(Player killer, int reason) {
this.m_qKiller = killer;
this.m_iReason = reason;
}
#endregion
#region Accessors & Mutators
///
/// Gets the player who killed the player who died. NULL if none.
///
public Player Killer {
get {
return this.m_qKiller;
}
}
///
/// Gets the ID of the reason for the player's death.
///
public int Reason {
get {
return this.m_iReason;
}
}
#endregion
};
};