ddnet/src/game/client/components/mapsounds.h

28 lines
451 B
C
Raw Normal View History

2014-10-10 17:10:57 +00:00
#pragma once
#include <base/tl/array.h>
#include <game/client/component.h>
class CMapSounds : public CComponent
{
int m_aSounds[64];
int m_Count;
2014-10-11 11:38:08 +00:00
struct CSource
{
int m_Sound;
CSoundSource *m_pSource;
bool operator ==(const CSource &Other) const { return (m_Sound == Other.m_Sound) && (m_pSource == Other.m_pSource); }
};
array<CSource> m_SourceQueue;
2014-10-10 17:10:57 +00:00
public:
CMapSounds();
virtual void OnMapLoad();
virtual void OnRender();
};