22 #ifndef AGS_ENGINE_DYNOBJ__SCRIPTFILE_H 23 #define AGS_ENGINE_DYNOBJ__SCRIPTFILE_H 25 #include "ags/engine/ac/dynobj/cc_dynamic_object.h" 26 #include "ags/shared/util/file.h" 34 #define scFileAppend 3 39 static const Shared::FileOpenMode fopenModes[];
40 static const Shared::FileWorkMode fworkModes[];
42 int Dispose(
const char *address,
bool force)
override;
44 const char *GetType()
override;
46 int Serialize(
const char *address,
char *buffer,
int bufsize)
override;
48 int OpenFile(
const char *filename,
int mode);
54 const char *GetFieldPtr(
const char *address, intptr_t offset)
override;
55 void Read(
const char *address, intptr_t offset,
void *dest,
int size)
override;
56 uint8_t ReadInt8(
const char *address, intptr_t offset)
override;
57 int16_t ReadInt16(
const char *address, intptr_t offset)
override;
58 int32_t ReadInt32(
const char *address, intptr_t offset)
override;
59 float ReadFloat(
const char *address, intptr_t offset)
override;
60 void Write(
const char *address, intptr_t offset,
void *src,
int size)
override;
61 void WriteInt8(
const char *address, intptr_t offset, uint8_t val)
override;
62 void WriteInt16(
const char *address, intptr_t offset, int16_t val)
override;
63 void WriteInt32(
const char *address, intptr_t offset, int32_t val)
override;
64 void WriteFloat(
const char *address, intptr_t offset,
float val)
override;
Definition: achievements_tables.h:27
Definition: script_file.h:36
Definition: cc_dynamic_object.h:51