Files
P2EP_Export/dungeon_sctruct.hexpat
2025-12-08 20:28:56 +05:00

81 lines
1.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

struct placeName {
u16 status;
char name[30];
};
struct scriptParams {
u32 cmd;
u16 param1;
u16 separ;
u32 jumpType;
u32 dungEventId;
u32 param2;
u8 endData[4];
};
/* jump types
0 - dungeon
1 - event
2 - city
3 - ????
event loads from pointer table from
Load_Event_from_Pointer:8002a5b0(R)
@ 80072c70
- координаты точек спавна описаны по указателю sTS
- где описывается взаимодействие с блоками?
- где привязываются и активируются текстовые окна?
-
*/
struct spawnEl {
u16 id [[color("002277")]];
u16 floorId [[color("002244")]];
u8 x [[color("005555")]];
u8 y [[color("775555")]];
u16 rotation [[color("445555")]];
};
struct floorInfo {
u16 width;
u16 height;
u32 FFseparator;
u32 floorId;
u32 geometryPtr;
u32 collisionsPtr;
u32 mapsPtr;
u32 vars1Ptr;
u32 vars2Ptr;
u32 vars3Ptr;
u32 zonesPtr;
u32 vars5Ptr;
u32 aSeparate[4];
u16 geometryData[width*height] @ geometryPtr;
u16 collisionsData[width*height*4] @ collisionsPtr;
u16 mapsData[width*height*4] @ mapsPtr;
u32 vars1Data @ vars1Ptr;
scriptParams vars2Data[4] @ vars2Ptr;
u32 some3Data @ vars3Ptr;
placeName names[3] @ zonesPtr;
u32 vars5Data @ vars5Ptr;
};
struct p2dungeonInfo {
char name[32];
u32 floorCount;
u8 floorIDs [0x10];
u8 floorIDhz [8];
u32 sTS;
u32 sTE;
floorInfo Info[floorCount];
spawnEl eData[55] @ sTS;
u32 uData @ sTE;
};
p2dungeonInfo dungeon @ 0x00;