dsekai
World engine for retrocomputers.
All Data Structures Files Functions Variables Typedefs Friends Macros Modules Pages
gid.h
Go to the documentation of this file.
1
2#ifndef GID_H
3#define GID_H
4
22typedef uint32_t MOBILE_GID;
24typedef uint16_t SPAWN_GID;
26typedef uint16_t TILEMAP_GID;
27
35#define SPAWN_GID_PLAYER 0xffff
36
37#define MOBILE_GID_NONE 0
38
40#define MOBILE_GID_PLAYER 0xffffffff
41
48#define MOBILE_MAP_GID_ALL 0xffff
49
55#define MOBILE_GID_FMT "%04d:%04d"
56
63#define mobile_get_gid_fmt( m ) (m)->map_gid, (m)->spawner_gid
64
67#endif /* !GID_H */
68
uint16_t TILEMAP_GID
Globally unique identifier for TILEMAP objects.
Definition: gid.h:26
uint32_t MOBILE_GID
Globally unique identifier for MOBILE objects.
Definition: gid.h:22
uint16_t SPAWN_GID
Globally unique identifier for TILEMAP_SPAWN objects.
Definition: gid.h:24