Prechádzať zdrojové kódy

Merge pull request #2159 from Azaezel/veryValid

exposes getters for typevalidators.
Areloch 7 rokov pred
rodič
commit
897174f5ea
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      Engine/source/console/typeValidators.h

+ 5 - 0
Engine/source/console/typeValidators.h

@@ -53,6 +53,8 @@ public:
       maxV = maxValue;
    }
    void validateType(SimObject *object, void *typePtr);
+   F32 getMin() { return minV; };
+   F32 getMax() { return maxV; };
 };
 
 /// Signed integer min/max range validator
@@ -66,6 +68,8 @@ public:
       maxV = maxValue;
    }
    void validateType(SimObject *object, void *typePtr);
+   F32 getMin() { return minV; };
+   F32 getMax() { return maxV; };
 };
 
 /// Scaled integer field validator
@@ -93,6 +97,7 @@ class Point3NormalizeValidator : public TypeValidator
 public:
    Point3NormalizeValidator(F32 normalizeLength = 1.0f) : length(normalizeLength) { }
    void validateType(SimObject *object, void *typePtr);
+   F32 getLength() { return length; };
 };
 
 namespace CommonValidators