shithub: cstory

ref: 3fc8ceb0a6637c3cc91634524c38c4a6a7e96db8
dir: /src/Map.h/

View raw version
#pragma once

#include <stdint.h>

#include "WindowsWrapper.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(const char *path_map);
BOOL LoadAttributeData(const 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);