2019-05-28 20:52:30 -04:00
|
|
|
#pragma once
|
|
|
|
|
2020-01-25 05:41:22 -05:00
|
|
|
class cAudioScriptObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int16 AudioId;
|
|
|
|
CVector Posn;
|
|
|
|
int32 AudioEntity;
|
|
|
|
|
2020-08-20 07:47:53 -04:00
|
|
|
cAudioScriptObject();
|
|
|
|
~cAudioScriptObject();
|
|
|
|
|
2020-01-25 05:41:22 -05:00
|
|
|
void Reset(); /// ok
|
|
|
|
|
|
|
|
static void* operator new(size_t);
|
|
|
|
static void* operator new(size_t, int);
|
|
|
|
static void operator delete(void*, size_t);
|
|
|
|
static void operator delete(void*, int);
|
2020-03-11 03:12:40 -04:00
|
|
|
|
2020-03-31 09:09:18 -04:00
|
|
|
static void LoadAllAudioScriptObjects(uint8 *buf, uint32 size);
|
2020-03-11 03:12:40 -04:00
|
|
|
static void SaveAllAudioScriptObjects(uint8 *buf, uint32 *size);
|
2020-01-25 05:41:22 -05:00
|
|
|
};
|
|
|
|
|
2020-05-10 11:49:33 -04:00
|
|
|
VALIDATE_SIZE(cAudioScriptObject, 20);
|
2020-01-25 05:41:22 -05:00
|
|
|
|
2019-06-16 18:16:38 -04:00
|
|
|
extern void PlayOneShotScriptObject(uint8 id, CVector const &pos);
|