- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
Regions
        ChiefOfGxBxL edited this page Jun 2, 2018 
        ·
        5 revisions
      
    Translator.Regions
var result = new Translator.Regions.jsonToWar(regionData);
// Now you can write result.buffer to a war3map.w3r fileregionData: [<Region>]; // Array of regionsWhere <Region> is a region structure defined by:
{
  id: <Int>,
  name: <String>,
  position: {
    left: <Float>,
    right: <Float>,
    bottom: <Float>,
    top: <Float>
  },
  weatherEffect: <String = 'none'>, // weather effect id
  ambientSound: <String = 'none'>, // name of sound, defined in .w3s
  color: [<Int = 0>, <Int = 0>, <Int = 255>] // red, green, blue of region used by editor
}Made with ❤️ for ⚔️ WarCraft III
Need help: Check the Wiki
Found bug: Create an issue