Isle
|
[AI] Holds a LegoROI pointer and reference count for a character instance managed by LegoCharacterManager. More...
#include <legocharactermanager.h>
Public Member Functions | |
LegoCharacter (LegoROI *p_roi) | |
[AI] Constructs a LegoCharacter with an initial reference count of 1 and assigns the ROI pointer. More... | |
~LegoCharacter () | |
[AI] Destructor that deletes the associated ROI. More... | |
void | AddRef () |
[AI] Increments the internal reference count for this character. More... | |
MxU32 | RemoveRef () |
[AI] Decrements the internal reference count. More... | |
Public Attributes | |
LegoROI * | m_roi |
[AI] Pointer to the character's ROI object. More... | |
MxU32 | m_refCount |
[AI] Reference count tracking how many owners the character ROI has. More... | |
[AI] Holds a LegoROI pointer and reference count for a character instance managed by LegoCharacterManager.
Used to manage lifetime and reference tracking for character ROI objects, with automatic deletion of the ROI when the reference count reaches zero. [AI]
SIZE: 0x08 bytes.
Definition at line 44 of file legocharactermanager.h.
|
inline |
[AI] Constructs a LegoCharacter with an initial reference count of 1 and assigns the ROI pointer.
p_roi | The LegoROI representing this character. [AI] |
Definition at line 49 of file legocharactermanager.h.
|
inline |
[AI] Destructor that deletes the associated ROI.
[AI]
Definition at line 57 of file legocharactermanager.h.
|
inline |
[AI] Increments the internal reference count for this character.
[AI]
Definition at line 62 of file legocharactermanager.h.
|
inline |
[AI] Decrements the internal reference count.
If the count reaches zero, the character should be destroyed.
Definition at line 68 of file legocharactermanager.h.
MxU32 LegoCharacter::m_refCount |
[AI] Reference count tracking how many owners the character ROI has.
Definition at line 77 of file legocharactermanager.h.
LegoROI* LegoCharacter::m_roi |
[AI] Pointer to the character's ROI object.
Definition at line 76 of file legocharactermanager.h.