u8g2-copy/sys/tga/mapgen/map.h

41 lines
663 B
C
Raw Normal View History

2017-07-06 13:07:10 +08:00
#ifndef _MAP_H
#define _MAP_H
#include <stdint.h>
2017-07-14 16:35:05 +08:00
struct _item_onmap_struct
{
uint8_t x;
uint8_t y;
uint8_t template_index;
uint8_t option;
};
typedef struct _item_onmap_struct item_onmap_t;
2017-07-06 13:07:10 +08:00
struct _map_struct
{
unsigned char *data;
2017-07-14 16:35:05 +08:00
item_onmap_t *onmap_list;
uint8_t onmap_cnt;
2017-07-06 13:07:10 +08:00
uint8_t width;
uint8_t height;
};
typedef struct _map_struct map_t;
2017-07-11 03:56:35 +08:00
struct _item_template_struct
{
uint16_t init_proc;
uint16_t hit_proc;
uint16_t step_proc;
2017-07-14 19:52:01 +08:00
uint8_t fg_tile; /* for tga output and inital tile */
2017-07-14 04:28:01 +08:00
};
2017-07-11 03:56:35 +08:00
typedef struct _item_template_struct item_template_t;
2017-07-14 19:52:01 +08:00
extern item_template_t item_template_list[];
2017-07-06 18:44:14 +08:00
extern map_t map_list[];
2017-07-06 13:07:10 +08:00
#endif