dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
Data Fields | Related Functions
TILEMAP Struct Reference

Information pertaining to in-game world currently loaded. More...

#include <tmstruct.h>

Collaboration diagram for TILEMAP:
Collaboration graph
[legend]

Data Fields

char name [TILEMAP_NAME_MAX]
 Tilemap name.
 
uint8_t flags
 Current Tilemap Flags.
 
TILEMAP_GID gid
 Globally unique ID for this tilemap.
 
struct TILESET_TILE tileset [TILEMAP_TILESETS_MAX]
 Array of prototype tiles all map tiles are based on.
 
uint8_t tiles [(TILEMAP_TH *TILEMAP_TW)/2]
 Array of 4-bit numbers representing tiles composing the map.
 
uint8_t tiles_flags [TILEMAP_TH *TILEMAP_TW]
 Special flag bitfields indicating each tile's behavior.
 
struct TILEMAP_SPAWN spawns [TILEMAP_SPAWNS_MAX]
 Mobile spawns on this map.
 
char strpool [TILEMAP_STRPOOL_SZ]
 Strings used in dialog/signs on this map.
 
struct SCRIPT scripts [TILEMAP_SCRIPTS_MAX]
 
struct ITEM item_defs [TILEMAP_ITEMS_MAX]
 Items able to be collected on this map.
 
struct CROP_DEF crop_defs [TILEMAP_CROP_DEFS_MAX]
 Crops able to be grown on this map.
 

Related Functions

(Note that these are not member functions.)

#define TILEMAP_TILE_FLAG_DIRTY   0x01
 TILEMAP::tiles_flags bit flag indicating tile must be redrawn.
 
void tilemap_refresh_tiles (struct TILEMAP *t)
 Force a redraw of all tiles on a TILEMAP by marking them dirty.
 
void tilemap_set_weather (uint8_t weather, struct TILEMAP *t) SECTION_TILEMAP
 Set the dsekai_tilemaps_weather of the given TILEMAP, including starting any related animation effects.
 
void tilemap_deinit (struct TILEMAP *) SECTION_TILEMAP
 Prepare a TILEMAP for deallocation.
 

Detailed Description

Information pertaining to in-game world currently loaded.

Modifications to this struct should also be reflected in tools/map2h.c.

Field Documentation

◆ gid

TILEMAP_GID TILEMAP::gid

Globally unique ID for this tilemap.

Attention
This should not be set to MOBILE_MAP_GID_ALL, or weird things will happen!

The documentation for this struct was generated from the following files: