public void Set(AttributeModifyType attributeModifyType, double v) { switch (attributeModifyType) { case AttributeModifyType.BASIC: Basic = v; break; case AttributeModifyType.RELATIVE: Relative = v; break; case AttributeModifyType.ABSOLUTE: Absolute = v; break; case AttributeModifyType.PERCENT: Percent = v; break; case AttributeModifyType.EXTRA: Extra = v; break; } }
public AttributeValue(AttributeModifyType attributeModifyType, double v) { basic = relative = absolute = percent = extra = 0; dirty = dirty1 = dirty2 = false; value = value1 = value2 = 0; Set(attributeModifyType, v); }
public void Set(AttributeModifyType attributeModifyType, double v) { value.Set(attributeModifyType, v); }
public void Add(AttributeModifyType attributeModifyType, double v) { value.Add(attributeModifyType, v); }