mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-03 01:02:44 +03:00
feat(object): add virtual dtors to base object classes
This commit is contained in:
parent
012e97f410
commit
305849b164
@ -4,6 +4,10 @@ CGContainer_C::CGContainer_C(uint32_t time, CClientObjCreate& objCreate) : CGIte
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGContainer_C::~CGContainer_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGContainer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGItem_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
|
||||
class CGContainer_C : public CGItem_C, public CGContainer {
|
||||
public:
|
||||
// Virtual public member functions
|
||||
virtual ~CGContainer_C();
|
||||
|
||||
// Public member functions
|
||||
CGContainer_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
@ -4,6 +4,10 @@ CGCorpse_C::CGCorpse_C(uint32_t time, CClientObjCreate& objCreate) : CGObject_C(
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGCorpse_C::~CGCorpse_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGCorpse_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGObject_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
|
||||
class CGCorpse_C : public CGObject_C, public CGCorpse {
|
||||
public:
|
||||
// Virtual public member functions
|
||||
virtual ~CGCorpse_C();
|
||||
|
||||
// Public member functions
|
||||
CGCorpse_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
@ -4,6 +4,10 @@ CGDynamicObject_C::CGDynamicObject_C(uint32_t time, CClientObjCreate& objCreate)
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGDynamicObject_C::~CGDynamicObject_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGDynamicObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGObject_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
|
||||
class CGDynamicObject_C : public CGObject_C, public CGDynamicObject {
|
||||
public:
|
||||
// Virtual public member functions
|
||||
virtual ~CGDynamicObject_C();
|
||||
|
||||
// Public member functions
|
||||
CGDynamicObject_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
@ -4,6 +4,10 @@ CGGameObject_C::CGGameObject_C(uint32_t time, CClientObjCreate& objCreate) : CGO
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGGameObject_C::~CGGameObject_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGGameObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGObject_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
|
||||
class CGGameObject_C : public CGObject_C, public CGGameObject {
|
||||
public:
|
||||
// Virtual public member functions
|
||||
virtual ~CGGameObject_C();
|
||||
|
||||
// Public member functions
|
||||
CGGameObject_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
@ -4,6 +4,10 @@ CGItem_C::CGItem_C(uint32_t time, CClientObjCreate& objCreate) : CGObject_C(time
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGItem_C::~CGItem_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGItem_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGObject_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
|
||||
class CGItem_C : public CGObject_C, public CGItem {
|
||||
public:
|
||||
// Virtual public member functions
|
||||
virtual ~CGItem_C();
|
||||
|
||||
// Public member functions
|
||||
CGItem_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
@ -19,6 +19,10 @@ CGObject_C::CGObject_C(uint32_t time, CClientObjCreate& objCreate) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGObject_C::~CGObject_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGObject_C::AddWorldObject() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
|
||||
// TODO
|
||||
|
||||
// Virtual public member functions
|
||||
// TODO
|
||||
virtual ~CGObject_C();
|
||||
virtual void Disable();
|
||||
// TODO
|
||||
virtual void HandleOutOfRange(OUT_OF_RANGE_TYPE type) {};
|
||||
|
||||
@ -7,6 +7,10 @@ CGPlayer_C::CGPlayer_C(uint32_t time, CClientObjCreate& objCreate) : CGUnit_C(ti
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGPlayer_C::~CGPlayer_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGUnit_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -10,6 +10,9 @@ class CreatureModelDataRec;
|
||||
|
||||
class CGPlayer_C : public CGUnit_C, public CGPlayer {
|
||||
public:
|
||||
// Virtual public member functions
|
||||
virtual ~CGPlayer_C();
|
||||
|
||||
// Public member functions
|
||||
CGPlayer_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
@ -93,6 +93,10 @@ CGUnit_C::CGUnit_C(uint32_t time, CClientObjCreate& objCreate) : CGObject_C(time
|
||||
// TODO
|
||||
}
|
||||
|
||||
CGUnit_C::~CGUnit_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGUnit_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->CGObject_C::SetStorage(storage, saved);
|
||||
|
||||
|
||||
@ -15,6 +15,9 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
||||
static const char* GetDisplayClassNameFromRecord(const ChrClassesRec* classRec, UNIT_SEX sex, UNIT_SEX* displaySex);
|
||||
static const char* GetDisplayRaceNameFromRecord(const ChrRacesRec* raceRec, UNIT_SEX sex, UNIT_SEX* displaySex);
|
||||
|
||||
// Virtual public member functions
|
||||
virtual ~CGUnit_C();
|
||||
|
||||
// Public member functions
|
||||
CGUnit_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user