Files
ss/include/nw4r/snd/snd_PlayerHeap.h
T
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

46 lines
806 B
C++

#ifndef NW4R_SND_PLAYER_HEAP_H
#define NW4R_SND_PLAYER_HEAP_H
#include "nw4r/snd/snd_SoundHeap.h"
#include "nw4r/types_nw4r.h"
namespace nw4r {
namespace snd {
// Forward declarations
class SoundPlayer;
namespace detail {
// Forward declarations
class BasicSound;
class PlayerHeap : public SoundHeap {
public:
PlayerHeap() : mSound(NULL), mPlayer(NULL) {}
virtual ~PlayerHeap() {} // at 0x8
void SetSound(BasicSound *pSound) {
mSound = pSound;
}
void SetSoundPlayer(SoundPlayer *pPlayer) {
mPlayer = pPlayer;
}
public:
NW4R_UT_LIST_NODE_DECL(); // at 0x2C
private:
BasicSound *mSound; // at 0x34
SoundPlayer *mPlayer; // at 0x38
};
NW4R_UT_LIST_TYPEDEF_DECL(PlayerHeap);
} // namespace detail
} // namespace snd
} // namespace nw4r
#endif