예제 #1
0
        public D3Attribute(int id, float defaultValue, int u3, int u4, int u5, string scriptA, string scriptB, string name, D3AttributeEncoding encodingType, byte u10, float min, float max, int bitCount)
        {
            ID = id;
            this.defaultValue.ValueF = defaultValue;
            U3           = u3;
            U4           = u4;
            U5           = u5;
            ScriptA      = scriptA;
            ScriptB      = scriptB;
            Name         = name;
            EncodingType = encodingType;
            U10          = u10;

            Min      = new D3AttributeValue(min);
            Max      = new D3AttributeValue(max);
            BitCount = bitCount;
        }
예제 #2
0
 public override string ValueToString(D3AttributeValue value)
 {
     return((value.Value != 0).ToString());
 }
예제 #3
0
 public virtual string ValueToString(D3AttributeValue value)
 {
     return("[Invalid]");
 }