using System; using System.Diagnostics; using LavishScriptAPI; using MRBot.IsxEq2.Helpers; namespace MRBot.IsxEq2.AbilityEffect { /// /// This DataType includes all of the data available to ISXEQ2 that is related /// to information about the classes that can use abilities or items. /// public class Class : LavishScriptObject { #region Constructor /// /// Constructor /// /// LS Object public Class(LavishScriptObject copy) : base(copy) { } #endregion #region Members /// /// Cache of Level /// private int? _level; /// /// Required level of this class /// public int Level { get { Trace.WriteLine(String.Format("Class:Level")); if(!_level.HasValue) _level = this.GetIntFromLSO("Level"); return _level.Value; } } /// /// Cache of Name /// private string _name; /// /// Class name /// public string Name { get { Trace.WriteLine(String.Format("Class:Name")); return _name ?? (_name = this.GetStringFromLSO("Name")); } } #endregion } }