papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
map.h File Reference

Data Structures

struct  MapSettings
 Fields other than main, entryList, entryCount, background, and tattle are initialised when the map loads. More...
 
struct  MapConfig
 
struct  AreaConfig
 
union  MapSettings.tattle
 

Macros

#define CLONED_MODEL(idx)   (10000+(idx))
 
#define ENTRY_COUNT(entryList)   (sizeof(entryList) / sizeof(Vec4f))
 
#define MAP_ID_MAX_LEN   7
 "xxx_yyy" excluding null terminator.
 

Typedefs

typedef Vec4f EntryList[]
 
typedef s32(* MapInit) (void)
 

Functions

MapSettingsget_current_map_settings (void)
 

Variables

AreaConfig gAreas [29]
 Zero-terminated.
 
EvtScript EVS_NpcHitRecoil
 
EvtScript EVS_800936C0
 

Data Structure Documentation

◆ MapSettings

struct MapSettings
Data Fields
BackgroundHeader * background
char ** colliderNameList
s32 entryCount
EntryList * entryList
s32 hitAssetCollisionOffset
s32 hitAssetZoneOffset
EvtScript * main
char ** modelNameList
struct ModelNode * modelTreeRoot
union MapSettings.tattle tattle
char unk_0C[4]
char unk_1C[12]
char unk_34[4]
char ** zoneNameList

◆ MapConfig

struct MapConfig
Data Fields
char * bgName
void * dmaDest
void * dmaEnd
void * dmaStart
char * id
See also
MAP_ID_MAX_LEN
MapInit init Return TRUE to skip normal asset (shape/hit/bg/tex) loading.
MapSettings * settings
s8 sfxReverb
s8 songVariation 0 or 1.
See also
bgm_get_map_default_variation
char unk_1C[0x2]

◆ AreaConfig

struct AreaConfig
Data Fields
char * id "area_xxx"
s32 mapCount
MapConfig * maps
char * name JP debug name.

Macro Definition Documentation

◆ CLONED_MODEL

#define CLONED_MODEL ( idx)    (10000+(idx))

◆ ENTRY_COUNT

#define ENTRY_COUNT ( entryList)    (sizeof(entryList) / sizeof(Vec4f))

◆ MAP_ID_MAX_LEN

#define MAP_ID_MAX_LEN   7

"xxx_yyy" excluding null terminator.

Typedef Documentation

◆ EntryList

typedef Vec4f EntryList[]

◆ MapInit

typedef s32(* MapInit) (void)

Function Documentation

◆ get_current_map_settings()

Variable Documentation

◆ EVS_800936C0

EvtScript EVS_800936C0
extern

◆ EVS_NpcHitRecoil

EvtScript EVS_NpcHitRecoil
extern

◆ gAreas