using System; namespace SAMP.API.EventData { public class PlayerRequestClassEventArgs : EventArgs { #region Class Variables private int m_iClassId; private bool m_bCancel; #endregion #region Constructor /// /// Initializes a new instance of the class. /// /// The reason for the disconnect. public PlayerRequestClassEventArgs(int classid) { m_iClassId = classid; } #endregion #region Accessors & Mutators /// /// The ID of the current class being viewed. /// public int Class { get { return this.m_iClassId; } } /// /// Gets or sets whether the event should cancel (class denied.) /// public bool Cancel { get { return this.m_bCancel; } set { this.m_bCancel = value; } } #endregion }; };