using System; using System.Diagnostics; using LavishScriptAPI; using MRBot.IsxEq2.Helpers; namespace MRBot.IsxEq2.InventoryConsignment { /// /// This DataType includes all of the data available to ISXEQ2 that is related to modifiers on items. /// public class ItemModifier : LavishScriptObject { #region Constructor /// /// Constructor /// /// LS Object public ItemModifier(LavishScriptObject copy) : base(copy) { } #endregion #region Members /// /// Cache of SubType /// private string _subType; /// /// Modifier SubType /// public string SubType { get { Trace.WriteLine(String.Format("ItemModifier:SubType")); return _subType ?? (_subType = this.GetStringFromLSO("SubType")); } } /// /// Cache of Type /// private string _type; /// /// Modifier Type /// public string Type { get { Trace.WriteLine(String.Format("ItemModifier:Type")); return _type ?? (_type = this.GetStringFromLSO("Type")); } } /// /// Cache of Value /// private int? _value; /// /// Modifier Value /// public int Value { get { Trace.WriteLine(String.Format("ItemModifier:Value")); if(!_value.HasValue) _value = this.GetIntFromLSO("Value"); return _value.Value; } } #endregion } }