mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2026-01-04 23:59:18 +11:00
18 lines
413 B
C
18 lines
413 B
C
#ifndef _STATE_PAGE_HEADER_
|
|
#define _STATE_PAGE_HEADER_
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "game_logic.h"
|
|
|
|
#define STATE_PAGE_DATA (251 - (GRID_SIDE * GRID_SIDE))
|
|
|
|
typedef struct {
|
|
volatile uint16_t hi_score;
|
|
volatile uint16_t saved_moves_count;
|
|
volatile uint8_t save_grid[GRID_SIDE * GRID_SIDE];
|
|
volatile uint8_t data[STATE_PAGE_DATA];
|
|
volatile uint8_t crc;
|
|
} state_page_data;
|
|
|
|
#endif /* _STATE_PAGE_HEADER_ */
|