Refactor dungeon and snes_color headers: reorder includes and update struct definitions for clarity
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
#ifndef YAZE_BASE_DUNGEON_H_
|
#ifndef YAZE_BASE_DUNGEON_H_
|
||||||
#define YAZE_BASE_DUNGEON_H_
|
#define YAZE_BASE_DUNGEON_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
struct object_door {
|
struct object_door {
|
||||||
object_door() = default;
|
object_door() = default;
|
||||||
object_door(short id, uint8_t x, uint8_t y, uint8_t size, uint8_t layer)
|
object_door(short id, uint8_t x, uint8_t y, uint8_t size, uint8_t layer)
|
||||||
|
|||||||
@@ -10,22 +10,20 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Primitive of 16-bit RGB SNES color.
|
* @brief Primitive of 16-bit RGB SNES color.
|
||||||
*/
|
*/
|
||||||
struct snes_color {
|
typedef struct snes_color {
|
||||||
uint16_t red; /**< Red component of the color. */
|
uint16_t red; /**< Red component of the color. */
|
||||||
uint16_t blue; /**< Blue component of the color. */
|
uint16_t blue; /**< Blue component of the color. */
|
||||||
uint16_t green; /**< Green component of the color. */
|
uint16_t green; /**< Green component of the color. */
|
||||||
};
|
} snes_color;
|
||||||
typedef struct snes_color snes_color;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Primitive of a SNES color palette.
|
* @brief Primitive of a SNES color palette.
|
||||||
*/
|
*/
|
||||||
struct snes_palette {
|
typedef struct snes_palette {
|
||||||
unsigned int id; /**< ID of the palette. */
|
unsigned int id; /**< ID of the palette. */
|
||||||
unsigned int size; /**< Size of the palette. */
|
unsigned int size; /**< Size of the palette. */
|
||||||
snes_color* colors; /**< Pointer to the colors in the palette. */
|
snes_color* colors; /**< Pointer to the colors in the palette. */
|
||||||
};
|
} snes_palette;
|
||||||
typedef struct snes_palette snes_palette;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user