-
Notifications
You must be signed in to change notification settings - Fork 31
Imports
ChiefOfGxBxL edited this page Jun 2, 2018
·
5 revisions
Translator.Imports
var result = new Translator.Imports.jsonToWar(importData);
// Now you can write result.buffer to a war3map.imp file
importData: [<Import>]; // Array of imports
Where <Import>
is an import structure defined by:
{
path: <String>,
type: <String = 'standard'> // valid values: "standard" or "custom" (custom will add on war3mapImported\ to the path)
}
[
{ path: "file1.mdx", type: 'standard' },
{ path: "file2.blp", type: 'custom' },
]
As seen, the file is quite minimal to create the war3map.imp
file. All that is needed is an array of structures, each containing a path
to the file, and a type
. These are at the root level for now.
Made with ❤️ for ⚔️ WarCraft III
Need help: Check the Wiki
Found bug: Create an issue