Changes
This site lists all changes between different API version of UDBScript
Version 5
- Added
Planeclass - Added
BlockMap,BlockEntry, andBlackMapQueryResultclasses Sectorclass- Added
getLabelPositionsmethod to get the position of sector labels (where tags, effects etc. are displayed)
- Added
- Added support for JavaScript BigInt for UDMF fields. This means it's not necessary anymore to use
UniValueto assign integers to new UDMF fields. Instead it can be done like this:sector.fields.my_int_field = 1n; - Added type information file (udbscript.d.ts)
Version 4
- Moved all classes, object, and methods into the
UDBnamespace (everything has to be prefixed wihtUDB.) - Added methods to report progress for long running scripts and script log output. See Communicating with the user for more information
Version 3
- Exported the classes
Linedef,Sector,Sidedef,Thing, andVertex, so that they can be used withinstanceof Mapclass- The
getSidedefsFromSelectedLinedefs()method now correctly only returns theSidedefs of selectedLinedefs in visual mode (and not also the highlighted one) - Added a new
getSidedefsFromSelectedOrHighlightedLinedefs()method as the equivalent to the othergetSelectedOrHighlighted*()methods
- The
Sectorclass- Added new
floorSelected,ceilingSelected,floorHighlighted, andceilingHighlightedproperties. Those are mostly useful in visual mode, since they always return true when theSectoris selected or highlighted in the classic modes. The properties are read-only
- Added new
Sidedefclass- Added new
upperSelected,middleSelected,lowerSelected,upperHighlighted,middleHighlighted, andlowerHighlightedproperties. Those are mostly useful in visual mode, since they always return true when the parentLinedefis selected or highlighted in the classic modes. The properties are read-only
- Added new
Version 2
Penbuilt-in library- The methods of the
Penclass now return the instance of the Pen class to allow method chaining
- The methods of the