Alchemy
Loading...
Searching...
No Matches

inn_runtime.h

Go to the documentation of this file.
1#ifndef ALCHEMY_INN_RUNTIME_H
2#define ALCHEMY_INN_RUNTIME_H
3
4/// @file
5/// InnRuntimeState, an inn's work.
6
7#include "global_cells.h"
8#include "static_assert.h"
9#include "types.h"
10
11/// An inn's work, in the menu work: the coins window and the innkeeper's
12/// portrait.
15 struct UiWindow *window; ///< the coins window: ShopRuntime's moneyWindow
16 u8 padding010[0x380];
17 /// ShopRuntime's six cursor icon slots; not named by TBS code.
20 /// The innkeeper's animation, which picks the portrait: ShopRuntime's
21 /// keeperResource.
24 u8 active; ///< ShopRuntime's shopType; the inn sets 1 when checking in
26 /// ShopRuntime's warriorShop; the inn sets 1 for inn 5.
28};
29
30STATIC_ASSERT(offsetof(struct InnRuntimeState, window) == 0x0c);
31STATIC_ASSERT(offsetof(struct InnRuntimeState, resourceEntries) == 0x390);
32STATIC_ASSERT(offsetof(struct InnRuntimeState, resourceId) == 0x3a4);
33STATIC_ASSERT(offsetof(struct InnRuntimeState, active) == 0x3a9);
34STATIC_ASSERT(offsetof(struct InnRuntimeState, specialActive) == 0x3ac);
35
36#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
An inn's work, in the menu work: the coins window and the innkeeper's portrait.
Definition inn_runtime.h:13
struct UiWindow * window
the coins window: ShopRuntime's moneyWindow
Definition inn_runtime.h:15
u16 resourceId
The innkeeper's animation, which picks the portrait: ShopRuntime's keeperResource.
Definition inn_runtime.h:22
u8 padding000[0x0c]
Definition inn_runtime.h:14
u8 active
ShopRuntime's shopType; the inn sets 1 when checking in.
Definition inn_runtime.h:24
u8 padding010[0x380]
Definition inn_runtime.h:16
u16 resourceEntries[6]
ShopRuntime's six cursor icon slots; not named by TBS code.
Definition inn_runtime.h:18
u8 specialActive
ShopRuntime's warriorShop; the inn sets 1 for inn 5.
Definition inn_runtime.h:27
A window: a framed rectangle of the tilemap with its sprite outputs, its opening or closing animation...
Definition uiwindow.h:11
The integer types, TRUE, UNUSED and the fixed-address macros.
unsigned short u16
Definition types.h:13
unsigned char u8
Definition types.h:11