Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public AttributeValue(AttributeModifyType attributeModifyType, double v)
 {
     basic = relative = absolute = percent = extra = 0;
     dirty = dirty1 = dirty2 = false;
     value = value1 = value2 = 0;
     Set(attributeModifyType, v);
 }
Esempio n. 3
0
 public void Set(AttributeModifyType attributeModifyType, double v)
 {
     value.Set(attributeModifyType, v);
 }
Esempio n. 4
0
 public void Add(AttributeModifyType attributeModifyType, double v)
 {
     value.Add(attributeModifyType, v);
 }