mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-28 08:42:25 +03:00
feat(model): partially implement CM2Model dtor
This commit is contained in:
2 files changed
+23
No files matched your search
@@ -76,6 +76,28 @@ uint16_t CM2Model::Sub8260C0(M2Data* data, uint32_t sequenceId, int32_t a3) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CM2Model::~CM2Model() {
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
// Unlink from lists
|
||||||
|
|
||||||
|
if (this->m_animatePrev) {
|
||||||
|
*this->m_animatePrev = this->m_animateNext;
|
||||||
|
}
|
||||||
|
if (this->m_animateNext) {
|
||||||
|
this->m_animateNext->m_animatePrev = this->m_animatePrev;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->m_drawPrev) {
|
||||||
|
*this->m_drawPrev = this->m_drawNext;
|
||||||
|
}
|
||||||
|
if (this->m_drawNext) {
|
||||||
|
this->m_drawNext->m_drawPrev = this->m_drawPrev;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CM2Model::AddRef() {
|
void CM2Model::AddRef() {
|
||||||
this->m_refCount++;
|
this->m_refCount++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ class CM2Model {
|
|||||||
, m_flag200000(0)
|
, m_flag200000(0)
|
||||||
, m_flag400000(0)
|
, m_flag400000(0)
|
||||||
{};
|
{};
|
||||||
|
~CM2Model();
|
||||||
void AddRef();
|
void AddRef();
|
||||||
void Animate();
|
void Animate();
|
||||||
void AnimateAttachmentsMT();
|
void AnimateAttachmentsMT();
|
||||||
|
|||||||
Reference in new issue
Block a user