Isle
|
[AI] Represents a single entry in the cached sound system, linking a sound pointer with its identifying name. More...
#include <legocachesoundmanager.h>
Public Member Functions | |
LegoCacheSoundEntry () | |
[AI] Constructs an empty sound entry with null pointers. [AI] More... | |
LegoCacheSoundEntry (LegoCacheSound *p_sound, const char *p_name) | |
[AI] Constructs a sound entry with a given sound and name string pointer. More... | |
LegoCacheSoundEntry (LegoCacheSound *p_sound) | |
[AI] Constructs a sound entry referencing a given sound, using its internal name data. More... | |
~LegoCacheSoundEntry () | |
[AI] Destructor for LegoCacheSoundEntry. Deletes the name only if entry does NOT own a sound (m_sound == NULL). [AI] More... | |
bool | operator== (LegoCacheSoundEntry) const |
[AI] Dummy equality operator (always returns false). More... | |
bool | operator< (LegoCacheSoundEntry) const |
[AI] Dummy less-than operator (always returns false). More... | |
LegoCacheSound * | GetSound () const |
[AI] Returns the pointer to the cached LegoCacheSound. [AI] More... | |
const char * | GetName () const |
[AI] Returns the name (string key) of this sound entry. [AI] More... | |
Friends | |
struct | Set100d6b4cComparator |
[AI] Allows Set100d6b4cComparator access to private fields. [AI] More... | |
[AI] Represents a single entry in the cached sound system, linking a sound pointer with its identifying name.
Contains non-owning pointer to a LegoCacheSound and a string name. The destructor deletes the name string only if the sound pointer is NULL and the name is not NULL (prevents accidental deletion when sound owns its name). [AI] Size: 0x08 bytes.
Definition at line 16 of file legocachesoundmanager.h.
|
inline |
[AI] Constructs an empty sound entry with null pointers. [AI]
Definition at line 18 of file legocachesoundmanager.h.
|
inline |
[AI] Constructs a sound entry with a given sound and name string pointer.
[AI]
p_sound | Pointer to the LegoCacheSound instance. [AI] |
p_name | Pointer to the name string (not copied, non-owning, unless m_sound is NULL). [AI] |
Definition at line 23 of file legocachesoundmanager.h.
|
inline |
[AI] Constructs a sound entry referencing a given sound, using its internal name data.
[AI]
[AI] The entry copies the pointer to the name from p_sound->GetUnknown0x48().GetData(). [AI]
p_sound | Pointer to the LegoCacheSound. [AI] |
Definition at line 28 of file legocachesoundmanager.h.
|
inline |
[AI] Destructor for LegoCacheSoundEntry. Deletes the name only if entry does NOT own a sound (m_sound == NULL). [AI]
Definition at line 31 of file legocachesoundmanager.h.
|
inline |
[AI] Returns the name (string key) of this sound entry. [AI]
Definition at line 48 of file legocachesoundmanager.h.
|
inline |
[AI] Returns the pointer to the cached LegoCacheSound. [AI]
Definition at line 46 of file legocachesoundmanager.h.
|
inline |
[AI] Dummy less-than operator (always returns false).
[AI]
[unused] | [AI] |
Definition at line 43 of file legocachesoundmanager.h.
|
inline |
[AI] Dummy equality operator (always returns false).
[AI]
[unused] | [AI] |
Definition at line 40 of file legocachesoundmanager.h.
|
friend |
[AI] Allows Set100d6b4cComparator access to private fields. [AI]
Definition at line 51 of file legocachesoundmanager.h.