Merge pull request #2159 from Azaezel/veryValid

exposes getters for typevalidators.
This commit is contained in:
Areloch 2018-02-14 01:40:42 -06:00 committed by GitHub
commit 897174f5ea

View file

@ -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