Torque3D Documentation / _generateds / IRangeValidatorScaled

IRangeValidatorScaled

Engine/source/console/typeValidators.h

Scaled integer field validator.

More...

Private Attributes

Public Functions

IRangeValidatorScaled(S32 scaleFactor, S32 minValueScaled, S32 maxValueScaled)
validateType(SimObject * object, void * typePtr)

validateType is called for each assigned value on the field this validator is attached to.

Detailed Description

Scaled integer field validator.

note:

This should NOT be used on a field that gets exported - the field is only validated once on initial assignment

Private Attributes

S32 factor 
S32 maxV 
S32 minV 

Public Functions

IRangeValidatorScaled(S32 scaleFactor, S32 minValueScaled, S32 maxValueScaled)

validateType(SimObject * object, void * typePtr)

Reimplemented from: TypeValidator