mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(object): add storage management functions to base object classes
This commit is contained in:
33 files changed
+389
-36
No files matched your search
@@ -1,10 +1,26 @@
|
||||
#include "object/client/CGGameObject.hpp"
|
||||
#include "object/client/CGObject.hpp"
|
||||
|
||||
uint32_t CGGameObject::GetBaseOffset() {
|
||||
return CGObject::TotalFields();
|
||||
}
|
||||
|
||||
uint32_t CGGameObject::GetBaseOffsetSaved() {
|
||||
return CGObject::TotalFieldsSaved();
|
||||
}
|
||||
|
||||
uint32_t CGGameObject::GetDataSize() {
|
||||
return CGGameObject::TotalFields() * sizeof(uint32_t);
|
||||
}
|
||||
|
||||
uint32_t CGGameObject::GetDataSizeSaved() {
|
||||
return CGGameObject::TotalFieldsSaved() * sizeof(uint32_t);
|
||||
}
|
||||
|
||||
uint32_t CGGameObject::TotalFields() {
|
||||
return CGObject::TotalFields() + 12;
|
||||
return CGGameObject::GetBaseOffset() + 12;
|
||||
}
|
||||
|
||||
uint32_t CGGameObject::TotalFieldsSaved() {
|
||||
return CGObject::TotalFieldsSaved() + 4;
|
||||
return CGGameObject::GetBaseOffsetSaved() + 4;
|
||||
}
|
||||
Reference in new issue
Block a user