about summary refs log tree commit diff
path: root/src/game/client/components/sounds.hpp
blob: 5e3dfd6e8bd1b00f671aee5ba6d9cb96e2e43a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);
};