Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9,288 changes: 7,071 additions & 2,217 deletions _data/stdlib_index.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions _doc/stdlib/ref/_handles/Camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ Runs the camera through the cinematic camera
specified in cameraModelFile. Existing cameras are available
via Objects.cameraXXX paths"

### setCameraType

```wurst
public function setCameraType(int cameraType)
```

### getCameraType

```wurst
public function getCameraType() returns int
```

## Extension Functions

### camerafield.set
Expand Down Expand Up @@ -362,3 +374,39 @@ public function unit.setCameraOrientController(vec2 offset)
```wurst
public function unit.setCameraOrientControllerForPlayer(vec2 offset, player whichPlayer)
```

### camerasetup.setCameraType

```wurst
public function camerasetup.setCameraType(int cameraType)
```

### camerasetup.getCameraType

```wurst
public function camerasetup.getCameraType() returns int
```

### camerafield.setControlledByInput

```wurst
public function camerafield.setControlledByInput(boolean controlled)
```

### camerafield.isControlledByInput

```wurst
public function camerafield.isControlledByInput() returns boolean
```

### rect.addCameraBlocker

```wurst
public function rect.addCameraBlocker()
```

### rect.setCameraBlockerEnabled

```wurst
public function rect.setCameraBlockerEnabled(boolean enabled)
```
156 changes: 156 additions & 0 deletions _doc/stdlib/ref/_handles/Destructable.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,150 @@ public function createDestructable(int id, vec3 pos, angle direction, real scale
public function createDestructable(int id, vec2 pos, angle direction, real scale, int variation) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec2 pos, angle direction, real scale, int variation, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec3 pos, angle direction, real scale, int variation, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec2 pos, angle direction, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec3 pos, angle direction, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDestructable

```wurst
public function createDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec2 pos, angle direction, real scale, int variation, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec3 pos, angle direction, real scale, int variation, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec2 pos, angle direction, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec3 pos, angle direction, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec2 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### createDeadDestructable

```wurst
public function createDeadDestructable(int id, vec3 pos, angle direction, angle roll, angle pitch, real scale, int variation, int skinId, playercolor whichColor) returns destructable
```

### isElevatorHeightInBounds

```wurst
Expand Down Expand Up @@ -253,3 +397,15 @@ public function elevator.setHeight(int height)
```

Set elevator height to given value.

### destructable.setColor

```wurst
public function destructable.setColor(playercolor whichColor)
```

### destructable.setVertexColor

```wurst
public function destructable.setVertexColor(int red, int green, int blue, int alpha)
```
99 changes: 99 additions & 0 deletions _doc/stdlib/ref/_handles/Doodad.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
title: Doodad
layout: stdlibref
category: _handles
categoryLabel: Handle Wrappers
tags:
- handles
source: 'https://github.com/wurstscript/WurstStdlib2/blob/master/wurst/_handles/Doodad.wurst'
generated: true
toc: sections
---

**[Source on GitHub](https://github.com/wurstscript/WurstStdlib2/blob/master/wurst/_handles/Doodad.wurst)**

## Tuples

### doodad

```wurst
public tuple doodad(int index)
```

A placed map doodad addressed by its zero-based map index.

## Functions

### getDoodadCount

```wurst
public function getDoodadCount() returns int
```

### getDoodad

```wurst
public function getDoodad(int index) returns doodad
```

## Extension Functions

### doodad.getTypeId

```wurst
public function doodad.getTypeId() returns int
```

### doodad.getVariation

```wurst
public function doodad.getVariation() returns int
```

### doodad.getPos

```wurst
public function doodad.getPos() returns vec3
```

### doodad.getScale

```wurst
public function doodad.getScale() returns vec3
```

### doodad.getYaw

```wurst
public function doodad.getYaw() returns angle
```

### doodad.getPitch

```wurst
public function doodad.getPitch() returns angle
```

### doodad.getRoll

```wurst
public function doodad.getRoll() returns angle
```

### doodad.isUsingModelAxes

```wurst
public function doodad.isUsingModelAxes() returns boolean
```

### doodad.setAnimation

```wurst
public function doodad.setAnimation(string animation, boolean randomize)
```

### doodad.setColor

```wurst
public function doodad.setColor(playercolor whichColor)
```
22 changes: 22 additions & 0 deletions _doc/stdlib/ref/_handles/Effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,25 @@ public function effect.resetScale()
```

Reset effect scale.

### effect.setAnimation

```wurst
public function effect.setAnimation(string animation)
```

Immediately selects an animation by model sequence name.

### effect.queueAnimation

```wurst
public function effect.queueAnimation(string animation)
```

Adds an animation by model sequence name to the effect's queue.

### effect.setAnimationBlendTime

```wurst
public function effect.setAnimationBlendTime(real blendTime)
```
22 changes: 22 additions & 0 deletions _doc/stdlib/ref/_handles/Framehandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,28 @@ public function framehandle.getChild(int index) returns framehandle
Get child frame handle from given index.
The index must be in the range 0 <= index < getChildrenCount(). Out-of-bounds access can crash.

### framehandle.setTextAreaAutoScroll

```wurst
public function framehandle.setTextAreaAutoScroll(boolean enabled)
```

### vec2.frameToPixel

```wurst
public function vec2.frameToPixel() returns vec2
```

Converts frame coordinates to window pixels.

### vec2.pixelToFrame

```wurst
public function vec2.pixelToFrame() returns vec2
```

Converts window pixels to frame coordinates.

## Constants

### GAME_UI
Expand Down
Loading