add base/overworld.h

This commit is contained in:
scawful
2024-08-09 01:42:55 -04:00
parent 4ca0ef1bd8
commit 022d138d26
2 changed files with 29 additions and 1 deletions

28
src/base/overworld.h Normal file
View 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

View File

@@ -25,7 +25,7 @@ struct z3_sprite {
const char* name; /**< Name 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;