API Reference
Find a package, then open a type or function. Search the site for a specific symbol or rawcode.
Explore the standard library guides
AbilityObjEditingObject Editing BuffObjEditingObject EditingYou should use 'createBuffObject' inside compiletime expressions: ChannelAbilityPresetObject Editing DestructableObjEditingObject EditingCreates a destructable by copying origID into the custom object newID. DoodadObjEditingObject EditingCreates a doodad by copying origID into the custom object newID. HeroPresetObject Editing ItemObjEditingObject EditingCreates an item based on an existing item ID. Import ObjectIdGenerator and ItemIds for this example: ObjectIdGeneratorObject EditingGenerates sequential four-character object IDs from a starting rawcode. ObjectIdsObject Editing ObjEditingCommonsObject Editing ObjEditingNativesObject EditingCopies deriveFrom into the custom object newId during compile-time object generation. OrderStringFactoryObject Editing TargetsAllowedObject Editing UnitObjEditingObject EditingCreates a unit based on an existing unit ID. Import ObjectIdGenerator and UnitIds for this example: UpgradeObjEditingObject EditingUse this class to create upgrade definitions. Constructors provide a "Clean" ArrayListData StructuresHigh-performance array-based list using static shared storage per type. BitSetData Structures CodeListData Structures HashListData StructuresHashLists are used if you require quick contains operations HashMapData StructuresGeneric Table Wrapper. HashSetData StructuresGeneric set implementation IntMapData StructuresO(1) integer-keyed map with compiler-specialized value storage. KeyedMapData StructuresTyped value intrinsic used by FastKeyedMap. Keep the name distinct from keyedMapPut: the legacy LinkedListData StructuresDoubly-linked list implementation that implements all common list, stack and queue operations. LinkedListModuleData StructuresTurns a class into a linked list where each instance knows its previous PriorityQueueData StructuresA binary heap priority queue. ShardedIntStorageData StructuresA shared integer arena spanning multiple native JASS arrays. Allocations are TableData StructuresWraps a hashtable to provide single key tables ClosureEventsClosuresThis package is a comfort wrapper around wc3 events, ClosureForGroupsClosuresExecutes the given closure for every unit of the given type. ClosureFramesClosures ClosureKeyPressesClosures ClosureTimersClosuresExecute an action after a certain time. ExecuteClosuresThis package exposes a single function execute(), SpatialIndexForDestructablesClosuresNative-less Lua spatial queries for destructables. SpatialIndexForUnitsClosuresNative-less Lua spatial queries. DamageEventEventsThis package provides a light-weight damage detection system with priority-ordered listeners. EventHelperEventsThis class exposes all Getters and Setters for trigger events. LastOrderEventsIf you import this package in any of your packages, each order OnUnitEnterLeaveEvents RegisterEventsEventsRegisters a listener for the event of all players. The filter belongs to the event, not to the listener: the UnitLifecycleTraceEventsOptional synchronous diagnostics. The default is empty and optimizes away. DummyCasterDummiesDummy casters are commonly used in custom spells to cast abilities dynamically onto targets or points. DummyDamageDummiesDummyDamage is used when you want to inflict damage from a certain player, DummyRecyclerDummiesOne pool of parked dummies. get snaps the facing with BlzSetUnitFacingEx, so any parked dummy serves any FxDummies* Fx2Dummies InstantDummyCasterDummiesDummy caster for casting instant spells. AngleMath BigNumMath BitwiseMathA tuple containing 4 bytes comprising a 4-byte integer. BitwiseInitMath InterpolationMathLinear Interpolation LineGeometryMath MathsMathReturns the length of the hypotenuse of a right-angle triangle with the MatricesMathMatrix 2x2 PathingGridMath PolygonMathAn immutable closed 2D path after seal(). Polygon owns its copied vertex QuaternionMathLinear interpolation. RaycastMathAn infinite 2D ray VectorsMathA vector is a geometric object that has a length and direction. Base64File & NetworkSpecifies how many characters to encode per a single execute() call. ByteBufferFile & Network ChunkedStringFile & Network FileIOFile & Network GameStatusFile & Network MultibyteDiagnosticsFile & Network SaveLoadDataFile & NetworkAsynchronously loads the data from the file of the given player SerializableFile & Network SQLiteFile & Network StructuredSerializationFile & NetworkStandard tuple codecs. StructuredSerializationCoreFile & NetworkDefault integrity key for structured saves. Override this in map configuration with a private, SyncSimpleFile & NetworkGeneric sync listener for arbitrary types that can be cast to/from int. BoardUtilitiesThis Board library allows you to create a simple multi board with dynamic cell values. CinematicUtilitiesCreate a cinematic by composing cinematic sequences: ColorsUtilitiesMixes two colors, s would be a number 0<=s<=1 that determines DestructableSpatialIndexUtilitiesStatic Lua spatial index for destructables. DialogBoxUtilitiesDialogBox lets you create dialogs more easily and associate its buttons with closures. EffectUtilsUtilities GameTimerUtilitiesSeconds elapsed since map start. GroupUtilsUtilitiesThe max number of recyclable groups. Even if this number is reached, Knockback3UtilitiesUse the Knockback3.add(..) functions to apply 3D knockback to units. MapBoundsUtilities PreloaderUtilities PrintingUtilities SafetyChecksUtilitiesEnables or disables various safety checks in miscellaneous libraries in Wurst. Simulate3dSoundUtilities SoundUtilsUtilities SpatialPartitionUtilitiesCell-head slots the given extent would need, so a caller can size cells and groups before committing StandardTextTagsUtilities StringUtilsUtilitiesReturns the width of the string. TerrainEnvironmentUtilities TerrainUtilsUtilities TimeUtilitiesType-safe wrappers to distinguish durations (an amount of time) from instants (a point in time), and the valid ways TimerUtilsUtilitiesGet a new timer. Use this instead of "CreateTimer". UnitIndexerUtilitiesReturns the int index of this unit. A missing or stale association is a critical error. UnitSpatialIndexUtilitiesDeprecated. Cell geometry belongs to the shared grid, so SPATIAL_PARTITION_CELL_SIZE is the _HandlesHandle Wrappers _PrimitivesHandle Wrappers AbilityHandle Wrappers BooleanHandle Wrappers BoolexprHandle Wrappers CameraHandle WrappersPans the camera to pos.x, pos.y and absolute height pos.z CommonNativeExtensionsHandle Wrappers DestructableHandle Wrappers DialogHandle WrappersDialogs are big dialog boxes at the center of the screen. The player can choose one button to click. DoodadHandle Wrappers EffectHandle WrappersChange the orientation of the special effect. FogmodifierHandle Wrappers ForceHandle Wrappers FramehandleHandle WrappersReturns the origin frame of the given type. GameCacheHandle Wrappers GroupHandle WrappersUse this group for your non-nested group enum calls HashtableHandle Wrappers ImageHandle WrappersImageLayer influences the order in which the images are drawn above one another: IntegerHandle WrappersReturns this int to the power of the argument int. ItemHandle WrappersUpdates the item's name, tooltip, extendedtooltip, description or icon for the given player only. LightningHandle Wrappers MultiboardHandle Wrappers PlayerHandle Wrappers PlayercolorHandle Wrappers QuestHandle Wrappers QuestItemHandle Wrappers RealHandle WrappersThe arctangent function with two arguments, returning the angle of the point (x, y). RectHandle Wrappers ReferenceHandle WrappersA simple wrapper class which contains a reference to a value of the given type. RegionHandle Wrappers SoundHandle WrappersReturns sound length in milliseconds. StringHandle WrappersA SubString slice that cuts a multibyte (non-latin) character in half does not TexttagHandle Wrappers TimerHandle Wrappers TimerDialogHandle WrappersMultiplies the timer's tick rate and remaining time, so that the overall elapsed time stays the same. TriggerHandle WrappersMetakey is an integer based native parameter which is used as a bitfield. UnitHandle WrappersSets the unit's position using the SetUnitPosition native. WeatherHandle Wrappers WidgetHandle Wrappers AbilitiesCore Language AbilityIdsCore LanguageBuilt-in ability rawcodes. Use these with ability natives or to identify the base ability of an object-editing wrapper. AnnotationsCore LanguageMarks a documented declaration whose calls are expanded by the compiler. AssetsCore Language AttachmentPointsCore LanguageClass that contains every known attachmentpoint in game BasicsCore Language BuffIdsCore LanguageBuilt-in buff rawcodes. Use these as base IDs for BuffDefinition; an ability applies the buff to a unit. BuildingsCore Language DoodadsCore Language EnvironmentCore Language ErrorHandlingCore LanguageTold about every error() after it is reported, so a test runner or a map can record errors FramehandleNamesCore LanguageThese default frames templates can be created with createFrame(..) [BlzCreateFrame] IconsCore Language ItemIdsCore LanguageBuilt-in item rawcodes. Use these as base IDs for ItemDefinition or with item natives. MagicFunctionsCore Languagebuiltin magic function. ObjectsCore Language OrderIdsCore Language OrdersCore Language PathingMapsCore Language ReflectionCore LanguageThis package is designed for debugging. SoundsCore Language SoundsetsCore Language TexturesCore Language TilesCore Language TypeCastingCore Language UICore Language UnitAnimationsCore Language UnitIdsCore LanguageBuilt-in unit, hero, and building rawcodes. Use these as base IDs for object editing or with unit natives. UnitsCore Language WeatherEffectsCore Language WurstunitCore Language StdlibIngameChecksRoot WurstRoot RegressionAbortOrderConsumertests RegressionCheckstests