add base/overworld.h
This commit is contained in:
28
src/base/overworld.h
Normal file
28
src/base/overworld.h
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#ifndef YAZE_OVERWORLD_H
|
||||||
|
#define YAZE_OVERWORLD_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct z3_overworld z3_overworld;
|
||||||
|
typedef struct z3_overworld_map z3_overworld_map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Primitive of an overworld map.
|
||||||
|
*/
|
||||||
|
struct z3_overworld_map {
|
||||||
|
uint8_t id; /**< ID of the overworld map. */
|
||||||
|
uint8_t* tile32_data; /**< Pointer to the 32x32 tile data. */
|
||||||
|
uint8_t* tile16_data; /**< Pointer to the 16x16 tile data. */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct z3_overworld {
|
||||||
|
z3_overworld_map* maps; /**< Pointer to the overworld maps. */
|
||||||
|
void* impl; // yaze::app::Overworld*
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -25,7 +25,7 @@ struct z3_sprite {
|
|||||||
const char* name; /**< Name of the sprite. */
|
const char* name; /**< Name of the sprite. */
|
||||||
uint8_t id; /**< ID of the sprite. */
|
uint8_t id; /**< ID of the sprite. */
|
||||||
|
|
||||||
sprite_action* actions; /**< Pointer to the actions of the sprite. */
|
z3_sprite_action* actions; /**< Pointer to the actions of the sprite. */
|
||||||
};
|
};
|
||||||
typedef struct z3_sprite z3_sprite;
|
typedef struct z3_sprite z3_sprite;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user