setAnimationFrame method

  1. @override
Future setAnimationFrame(
  1. ThermionEntity entity,
  2. int index,
  3. int animationFrame
)
override

Implementation

@override
Future setAnimationFrame(
    ThermionEntity entity, int index, int animationFrame) async {
  _module.ccall(
      "set_animation_frame",
      "void",
      ["void*".toJS, "int".toJS, "int".toJS, "int".toJS].toJS,
      [
        _sceneManager!,
        entity.toJS,
        index.toJS,
        animationFrame.toJS,
      ].toJS,
      null);
}