Torque2D Reference
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
IRangeValidatorScaled Class Reference

#include <ConsoleTypeValidators.h>

+ Inheritance diagram for IRangeValidatorScaled:

Public Member Functions

 IRangeValidatorScaled (S32 scaleFactor, S32 minValueScaled, S32 maxValueScaled)
 
void validateType (SimObject *object, void *typePtr)
 
- Public Member Functions inherited from ConsoleTypeValidator
 ConsoleTypeValidator ()
 
virtual ~ConsoleTypeValidator ()
 
void consoleError (SimObject *object, const char *format,...)
 

Additional Inherited Members

- Public Attributes inherited from ConsoleTypeValidator
S32 fieldIndex
 

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

Constructor & Destructor Documentation

IRangeValidatorScaled ( S32  scaleFactor,
S32  minValueScaled,
S32  maxValueScaled 
)
inline

Member Function Documentation

void validateType ( SimObject object,
void *  typePtr 
)
virtual

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

Implements ConsoleTypeValidator.


The documentation for this class was generated from the following files: