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

Method setCopyVariable

Engine/source/console/compiledEval.cpp:304–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304inline void ExprEvalState::setCopyVariable()
305{
306 if (copyVariable)
307 {
308 switch (copyVariable->value.type)
309 {
310 case ConsoleValue::TypeInternalInt:
311 currentVariable->setIntValue(copyVariable->getIntValue());
312 break;
313 case ConsoleValue::TypeInternalFloat:
314 currentVariable->setFloatValue(copyVariable->getFloatValue());
315 break;
316 default:
317 currentVariable->setStringValue(copyVariable->getStringValue());
318 break;
319 }
320 }
321}
322
323//------------------------------------------------------------
324

Callers 1

execMethod · 0.80

Calls 6

setIntValueMethod · 0.45
getIntValueMethod · 0.45
setFloatValueMethod · 0.45
getFloatValueMethod · 0.45
setStringValueMethod · 0.45
getStringValueMethod · 0.45

Tested by

no test coverage detected