-
Notifications
You must be signed in to change notification settings - Fork 59
war3map.dir Import Directories
With the advent of folder based map editing this functionality has been succeeded and this document deprecated
The war3map.dir format is a custom file type created for HiveWE that allows for storing and categorizing imports in a directory structure. The file is designed such that it can be easily compared and updated when the original war3map.imp file has changed as to keep compatibility with the original World Editor.
uint32 version
And then the following structure
uint32 item_count
uint8 is_directory
c_string name
uint8 is_custom
The previous structure can then repeat as many times as item_count or the item_count of a deeper nested structure.
uint32 version
The version of the file. Initial version is 1.
uint32 item_count
The amount of sub structures.
uint8 is_directory
Whether this structure is a directory. While an item_count > 0 might be seen as a directory this does not account for there to be empty folders.
c_string name
A null-terminated string of either the directory name or the import name
uint8 is_custom
Whether the import is custom. Refer to the page for war3map.imp[ToDo create] for the logic behind imports