MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetFloatVariableByName

Method GetFloatVariableByName

trinity/Controllers/Tr2Controller.cpp:314–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314std::optional<float> Tr2Controller::GetFloatVariableByName( const char* name ) const
315{
316 auto var = GetVariableByName( name );
317 if( var )
318 {
319 return var->GetValue();
320 }
321 return std::nullopt;
322}
323
324void Tr2Controller::GetExpressionTermInfo( std::vector<Tr2ExpressionTermInfoPtr>& out ) const
325{

Callers 3

GetScalingFactorMethod · 0.45
StartMethod · 0.45

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected