getAnimationDuration method
Returns the length (in seconds) of the animation at the given index.
Implementation
@override
Future<double> getAnimationDuration(
ThermionEntity entity, int animationIndex) async {
final result = _module.ccall(
"get_animation_duration",
"float",
["void*".toJS, "int".toJS, "int".toJS].toJS,
[_sceneManager!, entity.toJS, animationIndex.toJS].toJS,
null) as JSNumber;
return result.toDartDouble;
}