Isle
Loading...
Searching...
No Matches
LegoCacheSoundEntry Struct Reference

[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...
 
LegoCacheSoundGetSound () 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...
 

Detailed Description

[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.

Constructor & Destructor Documentation

◆ LegoCacheSoundEntry() [1/3]

LegoCacheSoundEntry::LegoCacheSoundEntry ( )
inline

[AI] Constructs an empty sound entry with null pointers. [AI]

Definition at line 18 of file legocachesoundmanager.h.

◆ LegoCacheSoundEntry() [2/3]

LegoCacheSoundEntry::LegoCacheSoundEntry ( LegoCacheSound p_sound,
const char *  p_name 
)
inline

[AI] Constructs a sound entry with a given sound and name string pointer.

[AI]

Parameters
p_soundPointer to the LegoCacheSound instance. [AI]
p_namePointer to the name string (not copied, non-owning, unless m_sound is NULL). [AI]

Definition at line 23 of file legocachesoundmanager.h.

◆ LegoCacheSoundEntry() [3/3]

LegoCacheSoundEntry::LegoCacheSoundEntry ( LegoCacheSound p_sound)
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]

Parameters
p_soundPointer to the LegoCacheSound. [AI]

Definition at line 28 of file legocachesoundmanager.h.

◆ ~LegoCacheSoundEntry()

LegoCacheSoundEntry::~LegoCacheSoundEntry ( )
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.

Member Function Documentation

◆ GetName()

const char * LegoCacheSoundEntry::GetName ( ) const
inline

[AI] Returns the name (string key) of this sound entry. [AI]

Definition at line 48 of file legocachesoundmanager.h.

◆ GetSound()

LegoCacheSound * LegoCacheSoundEntry::GetSound ( ) const
inline

[AI] Returns the pointer to the cached LegoCacheSound. [AI]

Definition at line 46 of file legocachesoundmanager.h.

◆ operator<()

bool LegoCacheSoundEntry::operator< ( LegoCacheSoundEntry  ) const
inline

[AI] Dummy less-than operator (always returns false).

[AI]

Parameters
[unused][AI]

Definition at line 43 of file legocachesoundmanager.h.

◆ operator==()

bool LegoCacheSoundEntry::operator== ( LegoCacheSoundEntry  ) const
inline

[AI] Dummy equality operator (always returns false).

[AI]

Parameters
[unused][AI]

Definition at line 40 of file legocachesoundmanager.h.

Friends And Related Function Documentation

◆ Set100d6b4cComparator

friend struct Set100d6b4cComparator
friend

[AI] Allows Set100d6b4cComparator access to private fields. [AI]

Definition at line 51 of file legocachesoundmanager.h.


The documentation for this struct was generated from the following file: