common_tasks: add common_play_sfx
This commit is contained in:
parent
d2c9aeaec3
commit
bffe79281c
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -163,3 +163,5 @@ DECLARE_EXTERN_TASK(
|
|||
glm_ease_t ease;
|
||||
}
|
||||
);
|
||||
|
||||
DECLARE_EXTERN_TASK(common_play_sfx, { const char *name; });
|
||||
|
|
Loading…
Reference in a new issue