Alchemy
Loading...
Searching...
No Matches

map_render_work.h

Go to the documentation of this file.
1/// @file
2/// MapRenderWork, the map renderer's work.
3
4#include "global_cells.h"
5#ifndef ALCHEMY_MAP_RENDER_WORK_H
6#define ALCHEMY_MAP_RENDER_WORK_H
7
8#include "types.h"
9#include "static_assert.h"
10
11/// The world map's perspective work (struct PerspectiveWork) as the world
12/// map scene sees it, for the map's rotation.
14 u8 unk000[0xfc]; ///< PerspectiveWork's fields before animationActive
15 s8 active; ///< PerspectiveWork's animationActive; not read by name
16 u8 unk0fd[3]; ///< not named by TBS code
17 s16 first; ///< PerspectiveWork's windowTop; not read by name
18 s16 second; ///< PerspectiveWork's windowBottom; not read by name
19 u8 unk104[0x16]; ///< PerspectiveWork's shown window, tiles and pitch
20 u16 rotation; ///< PerspectiveWork's yaw, 1/65536 turns
21};
22
23STATIC_ASSERT(offsetof(struct MapRenderWork, active) == 0xfc);
24STATIC_ASSERT(offsetof(struct MapRenderWork, first) == 0x100);
25STATIC_ASSERT(offsetof(struct MapRenderWork, rotation) == 0x11a);
26
27#endif
The work slots of gWorkSlot, read through their own names.
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
The world map's perspective work (struct PerspectiveWork) as the world map scene sees it,...
u8 unk104[0x16]
PerspectiveWork's shown window, tiles and pitch.
u8 unk000[0xfc]
PerspectiveWork's fields before animationActive.
s16 first
PerspectiveWork's windowTop; not read by name.
s8 active
PerspectiveWork's animationActive; not read by name.
s16 second
PerspectiveWork's windowBottom; not read by name.
u16 rotation
PerspectiveWork's yaw, 1/65536 turns.
u8 unk0fd[3]
not named by TBS code
The integer types, TRUE, UNUSED and the fixed-address macros.
signed char s8
Definition types.h:10
signed short s16
Definition types.h:12
unsigned short u16
Definition types.h:13
unsigned char u8
Definition types.h:11