diff --git a/src/base/sprite.h b/src/base/sprite.h index 18ea7357..3b5c3aff 100644 --- a/src/base/sprite.h +++ b/src/base/sprite.h @@ -7,37 +7,27 @@ extern "C" { #include -/** - * @brief Sprite instruction. - */ - -struct sprite_instruction { - const char* content; /**< Content of the instruction. */ -}; -typedef struct sprite_instruction sprite_instruction; - /** * @brief Sprite action. */ -struct sprite_action { +struct z3_sprite_action { const char* name; /**< Name of the action. */ uint8_t id; /**< ID of the action. */ - sprite_instruction* - instructions; /**< Pointer to the instructions of the action. */ + const char** instructions; /**< Pointer to the instructions of the action. */ }; -typedef struct sprite_action sprite_action; +typedef struct z3_sprite_action z3_sprite_action; /** * @brief Primitive of a sprite. */ -struct sprite { +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. */ }; -typedef struct sprite sprite; +typedef struct z3_sprite z3_sprite; #ifdef __cplusplus }