Refactor dungeon and snes_color headers: reorder includes and update struct definitions for clarity

This commit is contained in:
scawful
2024-11-08 21:03:38 -05:00
parent 1d650c0450
commit 8785e19a18
2 changed files with 6 additions and 8 deletions

View File

@@ -1,12 +1,12 @@
#ifndef YAZE_BASE_DUNGEON_H_
#define YAZE_BASE_DUNGEON_H_
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
struct object_door {
object_door() = default;
object_door(short id, uint8_t x, uint8_t y, uint8_t size, uint8_t layer)

View File

@@ -10,22 +10,20 @@ extern "C" {
/**
* @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 blue; /**< Blue component of the color. */
uint16_t green; /**< Green component of the color. */
};
typedef struct snes_color snes_color;
} snes_color;
/**
* @brief Primitive of a SNES color palette.
*/
struct snes_palette {
typedef struct snes_palette {
unsigned int id; /**< ID of the palette. */
unsigned int size; /**< Size of the palette. */
snes_color* colors; /**< Pointer to the colors in the palette. */
};
typedef struct snes_palette snes_palette;
} snes_palette;
#ifdef __cplusplus
}