Skip to content
🌋️
Alchemy
Theme: Weyard
Theme: Modern
Mode: Auto
Mode: Light
Mode: Dark
Alchemy
Source
Reference
Loading...
Searching...
No Matches
b5_context.h
Go to the documentation of this file.
1
#ifndef ALCHEMY_B5_CONTEXT_H
2
#define ALCHEMY_B5_CONTEXT_H
3
4
/// @file
5
/// B5Context, the object context a battle routine reads; most of its fields are
6
/// still unnamed.
7
8
#include "
edition.h
"
9
#include "
types.h
"
10
#include "
static_assert.h
"
11
12
/// The object context a battle routine reads; most of its fields are still
13
/// unnamed.
14
struct
B5Context
{
15
void
*
object
;
16
u8
padding04
[8];
17
s32
word0c
;
18
s32
word10
;
19
u8
padding14
[0x0c];
20
void
*
excluded20
;
21
void
*
excluded24
;
22
u8
padding28
[2];
23
s16
suppressUpdates
;
24
};
25
26
STATIC_ASSERT
(
offsetof
(
struct
B5Context
,
object
) == 0x00);
27
STATIC_ASSERT
(
offsetof
(
struct
B5Context
, word0c) == 0x0c);
28
STATIC_ASSERT
(
offsetof
(
struct
B5Context
, word10) == 0x10);
29
STATIC_ASSERT
(
offsetof
(
struct
B5Context
, suppressUpdates) == 0x2a);
30
31
#endif
edition.h
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
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
B5Context
The object context a battle routine reads; most of its fields are still unnamed.
Definition
b5_context.h:14
B5Context::word10
s32 word10
Definition
b5_context.h:18
B5Context::object
void * object
Definition
b5_context.h:15
B5Context::word0c
s32 word0c
Definition
b5_context.h:17
B5Context::padding04
u8 padding04[8]
Definition
b5_context.h:16
B5Context::excluded24
void * excluded24
Definition
b5_context.h:21
B5Context::suppressUpdates
s16 suppressUpdates
Definition
b5_context.h:23
B5Context::padding28
u8 padding28[2]
Definition
b5_context.h:22
B5Context::excluded20
void * excluded20
Definition
b5_context.h:20
B5Context::padding14
u8 padding14[0x0c]
Definition
b5_context.h:19
types.h
The integer types, TRUE, UNUSED and the fixed-address macros.
s32
signed int s32
Definition
types.h:14
s16
signed short s16
Definition
types.h:12
u8
unsigned char u8
Definition
types.h:11
include
battle
b5_context.h