Alchemy
Loading...
Searching...
No Matches

scene.h

Go to the documentation of this file.
1#ifndef ALCHEMY_SCENE_H
2#define ALCHEMY_SCENE_H
3
4/// @file
5/// FIELD_AT_OFFSET and the entity and camera views older scene code reads.
6
7#include "types.h"
8#include "edition.h"
9#include "farcall.h"
10
11#define FIELD_AT_OFFSET(base, type, offset) (*(type)((u8 *)(base) + (offset)))
12
13struct Ent {
17 u16 f06 : 9;
18 u16 f07 : 7;
20};
21
22struct Cam {
23 u8 pad[228];
26};
27
28#endif
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
Public interfaces to the engine's code banks.
Definition scene.h:22
s32 y
Definition scene.h:25
s32 x
Definition scene.h:24
u8 pad[228]
Definition scene.h:23
Definition scene.h:13
u8 f04
Definition scene.h:15
u16 f07
Definition scene.h:18
u16 f06
Definition scene.h:17
s32 f00
Definition scene.h:14
s32 f08
Definition scene.h:19
u8 f05
Definition scene.h:16
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