diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-29 05:34:18 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-29 05:34:18 +0000 |
| commit | 0511e1152a13ad99b51a819a75ef457404e86d4c (patch) | |
| tree | d8e31b98f18f7e027ee72a9792248072d93e5852 /src/game/client/components/sounds.hpp | |
| parent | b22dd1488cdae53d27215fda051fea9bfc72ac1d (diff) | |
| download | zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.tar.gz zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.zip | |
added sound component
Diffstat (limited to 'src/game/client/components/sounds.hpp')
| -rw-r--r-- | src/game/client/components/sounds.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game/client/components/sounds.hpp b/src/game/client/components/sounds.hpp new file mode 100644 index 00000000..5e3dfd6e --- /dev/null +++ b/src/game/client/components/sounds.hpp @@ -0,0 +1,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); +}; + + |