Alchemy
Loading...
Searching...
No Matches

script_object_entry.h

Go to the documentation of this file.
1#ifndef ALCHEMY_SCRIPT_OBJECT_ENTRY_H
2#define ALCHEMY_SCRIPT_OBJECT_ENTRY_H
3
4/// @file
5/// ScriptObjectEntry, an entry in the script objects' table.
6
7#include "unit/field/field.h"
8#include "types.h"
9#include "static_assert.h"
10
11/// A field object as the script commands' overlap checks see it.
13 void *data;
17 u8 unk22[0x37];
19 u8 unk5a[0x16];
20};
21
22STATIC_ASSERT(offsetof(struct ScriptObjectEntry, values08) == 0x08);
23STATIC_ASSERT(offsetof(struct ScriptObjectEntry, value20) == 0x20);
24STATIC_ASSERT(offsetof(struct ScriptObjectEntry, flags59) == 0x59);
25STATIC_ASSERT(sizeof(struct ScriptObjectEntry) == 0x70);
26
27#endif
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
Definition stddef.h:19
A field object as the script commands' overlap checks see it.
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
unsigned short u16
Definition types.h:13
unsigned char u8
Definition types.h:11