QUOTE |
public int this[AosAttribute attribute] { //ARTEGORDONMOD // add support for XmlAosAttributes attachment get { return ExtendedGetValue((int)attribute); } set { SetValue((int)attribute, value); } } //ARTEGORDONMOD // add support for XmlAosAttributes attachment public int ExtendedGetValue(int bitmask) { int value = GetValue(bitmask); XmlAosAttributes xaos = (XmlAosAttributes)XmlAttach.FindAttachment(Owner, typeof(XmlAosAttributes)); if (xaos != null) { value += xaos.GetValue(bitmask); } return (value); } |
QUOTE |
public int this[AosWeaponAttribute attribute] { //ARTEGORDONMOD // add support for XmlAosWeaponAttributes attachment get { return ExtendedGetValue((int)attribute); } set { SetValue((int)attribute, value); } } //ARTEGORDONMOD // add support for XmlAosWeaponAttributes attachment public int ExtendedGetValue(int bitmask) { int value = GetValue(bitmask); XmlAosWeaponAttributes xaos = (XmlAosWeaponAttributes)XmlAttach.FindAttachment(Owner, typeof(XmlAosWeaponAttributes)); if (xaos != null) { value += xaos.GetValue(bitmask); } return (value); } |
QUOTE |
public int this[AosArmorAttribute attribute] { //ARTEGORDONMOD // add support for XmlAosArmorAttributes attachment get { return ExtendedGetValue((int)attribute); } set { SetValue((int)attribute, value); } } //ARTEGORDONMOD // add support for XmlAosArmorAttributes attachment public int ExtendedGetValue(int bitmask) { int value = GetValue(bitmask); XmlAosArmorAttributes xaos = (XmlAosArmorAttributes)XmlAttach.FindAttachment(Owner, typeof(XmlAosArmorAttributes)); if (xaos != null) { value += xaos.GetValue(bitmask); } return (value); } |
QUOTE |
public int this[AosElementAttribute attribute] { //ARTEGORDONMOD // add support for XmlAosElementAttributes attachment get { return ExtendedGetValue((int)attribute); } set { SetValue((int)attribute, value); } } //ARTEGORDONMOD // add support for XmlAosElementAttributes attachment public int ExtendedGetValue(int bitmask) { int value = GetValue(bitmask); XmlAosElementAttributes xaos = (XmlAosElementAttributes)XmlAttach.FindAttachment(Owner, typeof(XmlAosElementAttributes)); if (xaos != null) { value += xaos.GetValue(bitmask); } return (value); } |