MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / validateType

Method validateType

Engine/source/console/typeValidators.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void FRangeValidator::validateType(SimObject *object, void *typePtr)
51{
52 F32 *v = (F32 *) typePtr;
53 if(*v < minV || *v > maxV)
54 {
55 consoleError(object, "Must be between %g and %g", minV, maxV);
56 if(*v < minV)
57 *v = minV;
58 else if(*v > maxV)
59 *v = maxV;
60 }
61}
62
63void IRangeValidator::validateType(SimObject *object, void *typePtr)
64{

Callers 1

setDataFieldMethod · 0.80

Calls 2

mIsEqualFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected