| 101 | } |
| 102 | |
| 103 | float IsAnimationPlaying( IRoot* ctx, const char* layerName ) |
| 104 | { |
| 105 | EveSpaceObject2Ptr spaceObject = BlueCastPtr( ctx ); |
| 106 | if( !spaceObject ) |
| 107 | { |
| 108 | return 0; |
| 109 | } |
| 110 | auto ac = spaceObject->GetAnimationController(); |
| 111 | if( !ac ) |
| 112 | { |
| 113 | return 0; |
| 114 | } |
| 115 | auto layer = ac->GetAnimationLayer( layerName && !*layerName ? nullptr : layerName ); |
| 116 | if( !layer ) |
| 117 | { |
| 118 | return 0; |
| 119 | } |
| 120 | auto remaining = layer->GetAnimationRemainingTime(); |
| 121 | return remaining > 0; |
| 122 | } |
| 123 | |
| 124 | float KillCount( IRoot* ctx ) |
| 125 | { |
nothing calls this directly
no test coverage detected