Пример #1
0
 private ConstantValue(ConstantSpec spec, ulong value)
 {
     Spec     = spec;
     Name     = spec.Name.Substring("VK_".Length);
     Type     = ValueType.Long;
     ValueInt = value;
 }
Пример #2
0
 private ConstantValue(ConstantSpec spec, float value)
 {
     Spec       = spec;
     Name       = spec.Name.Substring("VK_".Length);
     Type       = ValueType.Float;
     ValueFloat = value;
 }
Пример #3
0
        // Try process
        public static bool TryProcess(ConstantSpec spec, out ConstantValue?value)
        {
            value = null;

            // Parse value
            if (spec.Value[^ 1] == 'f')