- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
Terrain
        ChiefOfGxBxL edited this page Jun 2, 2018 
        ·
        4 revisions
      
    Translator.Terrain
var result = new Translator.Terrain.jsonToWar(terrainData);
// Now you can write result.buffer to a war3map.w3e fileterrainData: {
    tileset: <String>, // Tileset - lookup
    customtileset: <Boolean>,
    tilepalette: [<String>, ...], // Array of strings; each is the string id of a tile - lookup
    clifftilepalette: [<String>, ...], // Array of strings; each is the string id of a cliff tile - lookup
    map: {
        width: <Int>,
        height: <Int>
    },
    tiles: [ // Array of tile rows
        [ // Row of tiles
            // Tile: [height, water, flags, tile, texture, cliff tile, layer]
            [0, 0, 0, 0, 0, 0, 0],
            [1, 0, 0, 0, 0, 0, 0],
            [2, 0, 0, 0, 0, 0, 0],
            [3, 0, 0, 0, 0, 0, 0],
            [4, 0, 0, 0, 0, 0, 0],
            ...
        ],
        ...
    ]
}- map.offset = {x: 0, y: 0}
Made with ❤️ for ⚔️ WarCraft III
Need help: Check the Wiki
Found bug: Create an issue