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

Function CurveSetTime

trinity/Controllers/Tr2ControllerExpression.cpp:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36float CurveSetTime( IRoot* owner, const char* name )
37{
38 ITr2CurveSetOwnerPtr csOwner = BlueCastPtr( owner );
39 if( !csOwner )
40 {
41 return 0;
42 }
43 if( auto slash = strchr( name, '/' ) )
44 {
45 std::string csName = name;
46 std::string rangeName = csName.substr( slash - name + 1 );
47 csName = csName.substr( 0, slash - name );
48 return csOwner->GetRangeDuration( csName, rangeName );
49 }
50 else
51 {
52 return csOwner->GetCurveSetDuration( name );
53 }
54}
55
56float GetExternalControllerVariable( IRoot* ctx, const char* name, float defaultVal )
57{

Callers

nothing calls this directly

Calls 2

GetRangeDurationMethod · 0.45
GetCurveSetDurationMethod · 0.45

Tested by

no test coverage detected