Skip to content

Regions

ChiefOfGxBxL edited this page Apr 28, 2018 · 5 revisions

Translator

Translator.Regions

Usage

var regionsTranslator = new Translator.Regions(regionData);
regionsTranslator.write([outDir]);

Specification

regionData: [<Region>]; // Array of regions

Where <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
}

Translators

World entities

Place entities like units, doodads, etc. on the map

Units (unit or item)
Doodads
Terrain
Regions
Cameras
Sounds

Object definitions

Edit objects in the object editor

Units
Items
Destructables
Doodads
Abilities
Buffs
Upgrades

Other

Miscellaneous files like imports and strings

Imports
Strings
Info

Clone this wiki locally