| 71 | } |
| 72 | |
| 73 | float AnimationTime( IRoot* ctx, const char* name ) |
| 74 | { |
| 75 | EveSpaceObject2Ptr spaceObject = BlueCastPtr( ctx ); |
| 76 | if( !spaceObject ) |
| 77 | { |
| 78 | return 0; |
| 79 | } |
| 80 | auto ac = spaceObject->GetAnimationController(); |
| 81 | if( !ac ) |
| 82 | { |
| 83 | return 0; |
| 84 | } |
| 85 | return ac->FindAnimationDurationByName( name ); |
| 86 | } |
| 87 | |
| 88 | float Random( float min, float max ) |
| 89 | { |
nothing calls this directly
no test coverage detected