SAMP.NET/sampdotnet/API/EventData/Player/PlayerDisconnectEventArgs.cs
2022-08-27 18:10:32 +01:00

38 lines
733 B
C#

using System;
namespace SAMP.API.EventData {
public class PlayerDisconnectEventArgs : EventArgs {
#region Class Variables
private DisconnectReason
m_qReason;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="SAMP.API.EventData.PlayerDisconnectEventArgs"/> class.
/// </summary>
/// <param name="reason">The reason for the disconnect.</param>
public PlayerDisconnectEventArgs(DisconnectReason reason) {
this.m_qReason = reason;
}
#endregion
#region Accessors & Mutators
/// <summary>
/// The reason they left.
/// </summary>
public DisconnectReason Reason {
get {
return this.m_qReason;
}
}
#endregion
};
};