mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +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
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGContainer_C::~CGContainer_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGContainer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGContainer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGItem_C::SetStorage(storage, saved);
|
this->CGItem_C::SetStorage(storage, saved);
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
class CGContainer_C : public CGItem_C, public CGContainer {
|
class CGContainer_C : public CGItem_C, public CGContainer {
|
||||||
public:
|
public:
|
||||||
|
// Virtual public member functions
|
||||||
|
virtual ~CGContainer_C();
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CGContainer_C(uint32_t time, CClientObjCreate& objCreate);
|
CGContainer_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
|
|||||||
@ -4,6 +4,10 @@ CGCorpse_C::CGCorpse_C(uint32_t time, CClientObjCreate& objCreate) : CGObject_C(
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGCorpse_C::~CGCorpse_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGCorpse_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGCorpse_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGObject_C::SetStorage(storage, saved);
|
this->CGObject_C::SetStorage(storage, saved);
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
class CGCorpse_C : public CGObject_C, public CGCorpse {
|
class CGCorpse_C : public CGObject_C, public CGCorpse {
|
||||||
public:
|
public:
|
||||||
|
// Virtual public member functions
|
||||||
|
virtual ~CGCorpse_C();
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CGCorpse_C(uint32_t time, CClientObjCreate& objCreate);
|
CGCorpse_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
|
|||||||
@ -4,6 +4,10 @@ CGDynamicObject_C::CGDynamicObject_C(uint32_t time, CClientObjCreate& objCreate)
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGDynamicObject_C::~CGDynamicObject_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGDynamicObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGDynamicObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGObject_C::SetStorage(storage, saved);
|
this->CGObject_C::SetStorage(storage, saved);
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
class CGDynamicObject_C : public CGObject_C, public CGDynamicObject {
|
class CGDynamicObject_C : public CGObject_C, public CGDynamicObject {
|
||||||
public:
|
public:
|
||||||
|
// Virtual public member functions
|
||||||
|
virtual ~CGDynamicObject_C();
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CGDynamicObject_C(uint32_t time, CClientObjCreate& objCreate);
|
CGDynamicObject_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
|
|||||||
@ -4,6 +4,10 @@ CGGameObject_C::CGGameObject_C(uint32_t time, CClientObjCreate& objCreate) : CGO
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGGameObject_C::~CGGameObject_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGGameObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGGameObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGObject_C::SetStorage(storage, saved);
|
this->CGObject_C::SetStorage(storage, saved);
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
class CGGameObject_C : public CGObject_C, public CGGameObject {
|
class CGGameObject_C : public CGObject_C, public CGGameObject {
|
||||||
public:
|
public:
|
||||||
|
// Virtual public member functions
|
||||||
|
virtual ~CGGameObject_C();
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CGGameObject_C(uint32_t time, CClientObjCreate& objCreate);
|
CGGameObject_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
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
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGItem_C::~CGItem_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGItem_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGItem_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGObject_C::SetStorage(storage, saved);
|
this->CGObject_C::SetStorage(storage, saved);
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
class CGItem_C : public CGObject_C, public CGItem {
|
class CGItem_C : public CGObject_C, public CGItem {
|
||||||
public:
|
public:
|
||||||
|
// Virtual public member functions
|
||||||
|
virtual ~CGItem_C();
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CGItem_C(uint32_t time, CClientObjCreate& objCreate);
|
CGItem_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
|
|||||||
@ -19,6 +19,10 @@ CGObject_C::CGObject_C(uint32_t time, CClientObjCreate& objCreate) {
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGObject_C::~CGObject_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGObject_C::AddWorldObject() {
|
void CGObject_C::AddWorldObject() {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
|
|||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
// Virtual public member functions
|
// Virtual public member functions
|
||||||
// TODO
|
virtual ~CGObject_C();
|
||||||
virtual void Disable();
|
virtual void Disable();
|
||||||
// TODO
|
// TODO
|
||||||
virtual void HandleOutOfRange(OUT_OF_RANGE_TYPE type) {};
|
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
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGPlayer_C::~CGPlayer_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGUnit_C::SetStorage(storage, saved);
|
this->CGUnit_C::SetStorage(storage, saved);
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,9 @@ class CreatureModelDataRec;
|
|||||||
|
|
||||||
class CGPlayer_C : public CGUnit_C, public CGPlayer {
|
class CGPlayer_C : public CGUnit_C, public CGPlayer {
|
||||||
public:
|
public:
|
||||||
|
// Virtual public member functions
|
||||||
|
virtual ~CGPlayer_C();
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CGPlayer_C(uint32_t time, CClientObjCreate& objCreate);
|
CGPlayer_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
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
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGUnit_C::~CGUnit_C() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
void CGUnit_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGUnit_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
this->CGObject_C::SetStorage(storage, 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* GetDisplayClassNameFromRecord(const ChrClassesRec* classRec, UNIT_SEX sex, UNIT_SEX* displaySex);
|
||||||
static const char* GetDisplayRaceNameFromRecord(const ChrRacesRec* raceRec, 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
|
// Public member functions
|
||||||
CGUnit_C(uint32_t time, CClientObjCreate& objCreate);
|
CGUnit_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user