summaryrefslogblamecommitdiffstats
path: root/src/audio/AudioScriptObject.h
blob: ff36474dde612c36aee65ab2a07c535129188141 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

            












                                                   
 
                                                                       
                                                                        

  
                                      
 
                                                                 
#pragma once

class cAudioScriptObject
{
public:
	int16 AudioId;
	CVector Posn;
	int32 AudioEntity;

	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);

	static void LoadAllAudioScriptObjects(uint8 *buf, uint32 size);
	static void SaveAllAudioScriptObjects(uint8 *buf, uint32 *size);
};

VALIDATE_SIZE(cAudioScriptObject, 20);

extern void PlayOneShotScriptObject(uint8 id, CVector const &pos);