Changes
This site lists all changes between different API version of UDBScript
Version 5
- Added
Plane
class - Added
BlockMap
,BlockEntry
, andBlackMapQueryResult
classes Sector
class- Added
getLabelPositions
method 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
UniValue
to 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
UDB
namespace (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
Map
class- The
getSidedefsFromSelectedLinedefs()
method now correctly only returns theSidedef
s of selectedLinedef
s in visual mode (and not also the highlighted one) - Added a new
getSidedefsFromSelectedOrHighlightedLinedefs()
method as the equivalent to the othergetSelectedOrHighlighted*()
methods
- The
Sector
class- Added new
floorSelected
,ceilingSelected
,floorHighlighted
, andceilingHighlighted
properties. Those are mostly useful in visual mode, since they always return true when theSector
is selected or highlighted in the classic modes. The properties are read-only
- Added new
Sidedef
class- Added new
upperSelected
,middleSelected
,lowerSelected
,upperHighlighted
,middleHighlighted
, andlowerHighlighted
properties. Those are mostly useful in visual mode, since they always return true when the parentLinedef
is selected or highlighted in the classic modes. The properties are read-only
- Added new
Version 2
Pen
built-in library- The methods of the
Pen
class now return the instance of the Pen class to allow method chaining
- The methods of the