mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-23 07:45:55 +00:00
21 lines
514 B
C
21 lines
514 B
C
#ifndef Z64SFX_SOURCE_H
|
|
#define Z64SFX_SOURCE_H
|
|
|
|
#include "ultra64/ultratypes.h"
|
|
#include "z64math.h"
|
|
|
|
struct PlayState;
|
|
|
|
typedef struct SfxSource {
|
|
/* 0x00 */ u16 countdown;
|
|
/* 0x04 */ Vec3f worldPos;
|
|
/* 0x10 */ Vec3f projectedPos;
|
|
} SfxSource; // size = 0x1C
|
|
|
|
#define SFX_SOURCE_COUNT 16
|
|
|
|
void SfxSource_InitAll(struct PlayState* play);
|
|
void SfxSource_UpdateAll(struct PlayState* play);
|
|
void SfxSource_PlaySfxAtFixedWorldPos(struct PlayState* play, Vec3f* worldPos, s32 duration, u16 sfxId);
|
|
|
|
#endif
|