common_tasks: add common_play_sfx

This commit is contained in:
Andrei Alexeyev 2023-05-25 03:53:49 +02:00
parent d2c9aeaec3
commit bffe79281c
No known key found for this signature in database
GPG key ID: 72D26128040B9690
2 changed files with 6 additions and 0 deletions

View file

@ -392,3 +392,7 @@ DEFINE_EXTERN_TASK(common_easing_animated) {
*ARGS.value = from + scale * ARGS.ease(t / ftime);
}
}
DEFINE_EXTERN_TASK(common_play_sfx) {
play_sfx(ARGS.name);
}

View file

@ -163,3 +163,5 @@ DECLARE_EXTERN_TASK(
glm_ease_t ease;
}
);
DECLARE_EXTERN_TASK(common_play_sfx, { const char *name; });