Implement/match LegoCharacterManager::FUN_10083f10 (#774)

* Implement LegoCharacterManager::FUN_10083f10

* style

* Match

* Fix naming
This commit is contained in:
Christian Semmler
2024-04-06 11:46:40 -04:00
committed by GitHub
parent 75dc04f40a
commit 3bafe2d3a4
5 changed files with 54 additions and 8 deletions

View File

@@ -25,8 +25,17 @@ struct LegoCharacter {
m_roi = p_roi;
m_refCount = 1;
}
~LegoCharacter() { delete m_roi; }
inline void AddRef() { m_refCount++; }
inline MxU32 RemoveRef()
{
if (m_refCount != 0) {
m_refCount--;
}
return m_refCount;
}
LegoROI* m_roi; // 0x00
MxU32 m_refCount; // 0x04
@@ -65,6 +74,7 @@ public:
private:
LegoROI* CreateROI(const char* p_key);
void RemoveROI(LegoROI* p_roi);
LegoROI* FUN_10084cf0(LegoROI* p_roi, const char* p_name);
MxResult FUN_10085870(LegoROI* p_roi);