summaryrefslogtreecommitdiff
path: root/include/beanstalkSubtask.h
blob: f7bebbaff6fb0c22327afca4f1a4193878c9e501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef BEANSTALKSUBTASK_H
#define BEANSTALKSUBTASK_H

#include "global.h"
#include "map.h"

/*
tiles 0x4000 and above create an entry here
*/
#define MAX_SPECIAL_TILES 0x100
typedef struct {
    u16 tilePosAndLayer; // (layer << 12) | position
    u16 tileIndex;
} SpecialTileEntry;
extern SpecialTileEntry gTilesForSpecialTiles[MAX_SPECIAL_TILES];

typedef struct {
    u16 collision;
    u16 tileIndex;
} struct_080B44D0;

void LoadMapData(MapDataDefinition* dataDefinition);

/**
 * Renders a tileMap with 16x16 tiles into a subTileMap with 8x8 tiles.
 *
 * Takes into account the special tile indicess >= 0x4000 using GetTileSetIndexForSpecialTile.
 */
void RenderMapLayerToSubTileMap(u16* tileMap, MapLayer* mapLayer);

#endif // BEANSTALKSUBTASK_H