15void internal_m2n_animation_blend(entt::entity
id,
int layer, hpp::uuid guid,
float seconds,
bool loop,
bool phase_sync)
20 auto& am = ctx.get_cached<asset_manager>();
22 auto asset = am.get_asset<animation_clip>(guid);
27void internal_m2n_animation_play(entt::entity
id)
31 comp->get_player().play();
35void internal_m2n_animation_pause(entt::entity
id)
39 comp->get_player().pause();
43void internal_m2n_animation_resume(entt::entity
id)
47 comp->get_player().resume();
51void internal_m2n_animation_stop(entt::entity
id)
55 comp->get_player().stop();
59void internal_m2n_animation_set_speed(entt::entity
id,
float speed)
63 comp->set_speed(speed);
67auto internal_m2n_animation_get_speed(entt::entity
id) ->
float
71 return comp->get_speed();
81 auto reg = dotnet::internal_call_registry(
"Unravel.Core.AnimationComponent");
82 reg.add_internal_call(
"internal_m2n_animation_blend", dotnet_internal_call(internal_m2n_animation_blend));
83 reg.add_internal_call(
"internal_m2n_animation_play", dotnet_internal_call(internal_m2n_animation_play));
84 reg.add_internal_call(
"internal_m2n_animation_pause", dotnet_internal_call(internal_m2n_animation_pause));
85 reg.add_internal_call(
"internal_m2n_animation_resume", dotnet_internal_call(internal_m2n_animation_resume));
86 reg.add_internal_call(
"internal_m2n_animation_stop", dotnet_internal_call(internal_m2n_animation_stop));
87 reg.add_internal_call(
"internal_m2n_animation_set_speed", dotnet_internal_call(internal_m2n_animation_set_speed));
88 reg.add_internal_call(
"internal_m2n_animation_get_speed", dotnet_internal_call(internal_m2n_animation_get_speed));
animation_clip::seconds_t seconds_t
#define APPLOG_TRACE(...)
auto safe_get_component(entt::entity id) -> T *
void register_animation_component_script_bindings()
static auto context() -> rtti::context &