mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 12:08:20 +00:00
22 lines
278 B
C++
22 lines
278 B
C++
|
#include <game/client/component.hpp>
|
||
|
|
||
|
class SOUNDS : public COMPONENT
|
||
|
{
|
||
|
public:
|
||
|
// sound channels
|
||
|
enum
|
||
|
{
|
||
|
CHN_GUI=0,
|
||
|
CHN_MUSIC,
|
||
|
CHN_WORLD,
|
||
|
CHN_GLOBAL,
|
||
|
};
|
||
|
|
||
|
virtual void on_init();
|
||
|
virtual void on_render();
|
||
|
|
||
|
void play(int chn, int setid, float vol, vec2 pos);
|
||
|
};
|
||
|
|
||
|
|