32 #ifndef AGS_ENGINE_AC_DYNOBJ_CC_SCRIPT_OBJECT_H 33 #define AGS_ENGINE_AC_DYNOBJ_CC_SCRIPT_OBJECT_H 35 #include "common/std/utility.h" 36 #include "ags/shared/core/types.h" 52 void *
const Obj =
nullptr;
57 : Handle(handle), Obj(obj), Mgr(mgr) {}
70 virtual int Dispose(
void *address,
bool force =
false) = 0;
72 virtual const char *GetType() = 0;
76 virtual int Serialize(
void *address, uint8_t *buffer,
int bufsize) = 0;
95 virtual void *GetFieldPtr(
void *address, intptr_t offset) = 0;
96 virtual void Read(
void *address, intptr_t offset, uint8_t *dest,
size_t size) = 0;
97 virtual uint8_t ReadInt8(
void *address, intptr_t offset) = 0;
98 virtual int16_t ReadInt16(
void *address, intptr_t offset) = 0;
99 virtual int32_t ReadInt32(
void *address, intptr_t offset) = 0;
100 virtual float ReadFloat(
void *address, intptr_t offset) = 0;
101 virtual void Write(
void *address, intptr_t offset,
const uint8_t *src,
size_t size) = 0;
102 virtual void WriteInt8(
void *address, intptr_t offset, uint8_t val) = 0;
103 virtual void WriteInt16(
void *address, intptr_t offset, int16_t val) = 0;
104 virtual void WriteInt32(
void *address, intptr_t offset, int32_t val) = 0;
105 virtual void WriteFloat(
void *address, intptr_t offset,
float val) = 0;
116 virtual void Unserialize(int32_t handle,
const char *objectType,
const char *serializedData,
int dataSize) = 0;
123 virtual void Unserialize(int32_t handle,
const char *serializedData,
int dataSize) = 0;
Definition: achievements_tables.h:27
Definition: cc_script_object.h:121
Definition: cc_script_object.h:50
Definition: cc_script_object.h:60
Definition: cc_script_object.h:113