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

Method GetFloatVariableByName

trinity/Controllers/Tr2TimelineController.cpp:323–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323std::optional<float> Tr2TimelineController::GetFloatVariableByName( const char* name ) const
324{
325 for( auto& var : m_variables )
326 {
327 if( var->GetName() == name )
328 {
329 return var->GetValue();
330 }
331 }
332 return std::nullopt;
333}
334
335void Tr2TimelineController::GetExpressionTermInfo( std::vector<Tr2ExpressionTermInfoPtr>& out ) const
336{

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected