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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Compiled wld format.
//!
//! A placeholder description from [fabletlcmod.com forums](http://fabletlcmod.com/forum/index.php?t=msg&goto=39700&&srch=bwd#msg_39700):
//!
//!```txt
//! Map Data Header
//! [4] bytes - Number of map entries + 1
//!
//! Map Data Entries
//! [4] bytes - LevelName string length
//! ~string - LevelName
//! [4] bytes - LevelScriptName string length
//! ~string - LevelScriptName
//! [1] byte - Boolean? Always true
//! [1] byte - LoadedOnPlayerProximity boolean
//! [1] byte - IsSea boolean
//! [4] bytes - Map X start
//! [4] bytes - Map X end
//! [4] bytes - Map Y start
//! [4] bytes - Map Y end
//! [1] byte - Boolean? Always true
//! [4] bytes - Map UID
//! [4] bytes - Null, end of entry
//!
//! Region Data Header
//! [4] bytes - Number of region entries + 1
//!
//! Region Data Entries
//! [4] bytes - NumberOfContainedMaps
//! [4] bytes - NumberOfSeenMaps
//! [4] bytes - ContainedMap
//! (Repeat for x number of entries, omit if 0)
//! [4] bytes - SeenMap
//! (Repeat for x number of entries, omit if 0)
//! [4] bytes - RegionName string length
//! ~string - RegionName
//! [4] bytes - NewDisplayName string length
//! ~string - NewDisplayName
//! [4] bytes - RegionDef string length
//! ~string - RegionDef
//! [4] bytes - MiniMapGraphic string length
//! ~string - MiniMapGraphic
//! [1] byte - AppearOnWorldMap boolean
//! [1] byte - Boolean? Always true
//! [1] byte - Boolean? Always true
//! [4] bytes - Float, MiniMapScale
//! [4] bytes - Signed, MiniMapOffsetX
//! [4] bytes - Signed, MiniMapOffsetY
//! [4] bytes - Signed, WorldMapOffsetX
//! [4] bytes - Signed, WorldMapOffsetY
//! [4] bytes - MiniMapRegionExitTextOffset entries
//! [4] bytes - MiniMapRegionExitText string length
//! ~string - MiniMapRegionExitText
//! [4] bytes - MiniMapRegionExitTextOffsetX
//! [4] bytes - MiniMapRegionExitTextOffsetY
//! (Repeat for x number of entries, omit if 0)
//! ```