Skip to content
🌋️
Alchemy
Theme: Weyard
Theme: Modern
Mode: Auto
Mode: Light
Mode: Dark
Alchemy
Source
Reference
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.
12
struct
ScriptObjectEntry
{
13
void
*
data
;
14
u8
unk04
[4];
15
s32
values08
[6];
16
u16
value20
;
17
u8
unk22
[0x37];
18
u8
flags59
;
19
u8
unk5a
[0x16];
20
};
21
22
STATIC_ASSERT
(
offsetof
(
struct
ScriptObjectEntry
, values08) == 0x08);
23
STATIC_ASSERT
(
offsetof
(
struct
ScriptObjectEntry
, value20) == 0x20);
24
STATIC_ASSERT
(
offsetof
(
struct
ScriptObjectEntry
, flags59) == 0x59);
25
STATIC_ASSERT
(
sizeof
(
struct
ScriptObjectEntry
) == 0x70);
26
27
#endif
static_assert.h
STATIC_ASSERT, a compile-time check that emits nothing.
STATIC_ASSERT
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
Definition
static_assert.h:15
offsetof
#define offsetof(type, member)
Definition
stddef.h:19
ScriptObjectEntry
A field object as the script commands' overlap checks see it.
Definition
script_object_entry.h:12
ScriptObjectEntry::unk22
u8 unk22[0x37]
Definition
script_object_entry.h:17
ScriptObjectEntry::unk5a
u8 unk5a[0x16]
Definition
script_object_entry.h:19
ScriptObjectEntry::unk04
u8 unk04[4]
Definition
script_object_entry.h:14
ScriptObjectEntry::values08
s32 values08[6]
Definition
script_object_entry.h:15
ScriptObjectEntry::data
void * data
Definition
script_object_entry.h:13
ScriptObjectEntry::flags59
u8 flags59
Definition
script_object_entry.h:18
ScriptObjectEntry::value20
u16 value20
Definition
script_object_entry.h:16
types.h
The integer types, TRUE, UNUSED and the fixed-address macros.
s32
signed int s32
Definition
types.h:14
u16
unsigned short u16
Definition
types.h:13
u8
unsigned char u8
Definition
types.h:11
field.h
include
script_object_entry.h