shithub: cstory

ref: 17b0b503a940ef0cfb70ed1506a3132c0b6146d6
dir: /src/Map.h/

View raw version
#pragma once
#include <stdint.h>

struct MAP_DATA
{
	uint8_t *data;
	uint8_t atrb[0x101]; //Why is this 257 bytes?
	int16_t width;
	int16_t length;
};

extern MAP_DATA gMap;

bool InitMapData2();
bool LoadMapData2(char *path_map);
bool LoadAttributeData(char *path_atrb);
void EndMapData();
void ReleasePartsImage();
void GetMapData(uint8_t **data, int16_t *mw, int16_t *ml);
int GetAttribute(int x, int y);
void DeleteMapParts(int x, int y);
void ShiftMapParts(int x, int y);
bool ChangeMapParts(int x, int y, uint8_t no);
void PutStage_Back(int fx, int fy);
void PutStage_Front(int fx, int fy);
void PutMapDataVector(int fx, int fy);