|
Arma Reforger Script API
|
Public Member Functions | |
| Shape | AddBBox (vector min, vector max, int colour=DEFAULT_SHAPE_COLOUR, ShapeFlags additionalFlags=0) |
| Create an axis-aligned bounding box. | |
| Shape | AddLine (vector from, vector to, int colour=DEFAULT_SHAPE_COLOUR, ShapeFlags additionalFlags=0) |
| Create a straight line. | |
| Shape | AddPolyLine (notnull array< vector > points, int colour=DEFAULT_SHAPE_COLOUR) |
| Shape | AddArrow (vector from, vector to, int colour=DEFAULT_SHAPE_COLOUR) |
| Create an arrow. | |
| Shape | AddCircleXZ (vector centre, float radius, int colour=DEFAULT_SHAPE_COLOUR) |
| Create a horizontal circle. | |
| Shape | AddCircleArcXZ (vector centre, float angleStartRad, float coveredAngleRad, float radius, int colour=DEFAULT_SHAPE_COLOUR) |
| Create a horizontal arc (portion of a circleĆ | |
| Shape | AddCircleSliceXZ (vector centre, float angleStartRad, float coveredAngleRad, float radius, int colour=DEFAULT_SHAPE_COLOUR) |
| Create a horizontal circle slice. | |
| Shape | AddRectangle (vector origin, vector vectorDir, float length, float width, int colour=DEFAULT_SHAPE_COLOUR) |
| Create a rectangle. | |
| Shape | AddAABBRectangleXZ (vector min, vector max, int colour=DEFAULT_SHAPE_COLOUR) |
| Create an axis-aligned horizontal rectangle. | |
| Shape | AddRectangleXZ (vector origin, float directionRad, float length, float width, int colour=DEFAULT_SHAPE_COLOUR) |
| Create a horizontal rectangle. | |
| Shape | CreateTrapezoidalPrism (vector centerOfTopBasePos, vector directionUp, float smallBaseRadius, float largeBaseRadius, float height, int color, int subdivisions, ShapeFlags additionalFlags=0) |
| array< ref Shape > | AddParallelLines (vector origin, vector vectorDir, float length, float width, int colour=DEFAULT_SHAPE_COLOUR) |
| Create two parallel lines on the left and on the right of the provided virtual line. | |
| Shape | AddSphere (vector centre, float radius, int colour=DEFAULT_SHAPE_COLOUR, ShapeFlags additionalFlags=0) |
| Create a sphere. | |
| DebugTextWorldSpace | AddText (string text, vector worldPos, float size=2.0, int colour=DEFAULT_TEXT_COLOUR, int backgroundColour=DEFAULT_TEXT_BACKGROUND_COLOUR) |
| void | Add (notnull Shape shape) |
| Add an external shape to be held by the manager. | |
| void | Add (notnull DebugTextWorldSpace text) |
| Add an external text to be held by the manager. | |
| void | Remove (notnull Shape shape) |
| Remove the provided shape, if managed. | |
| void | Remove (notnull DebugTextWorldSpace text) |
| Remove the provided text, if managed. | |
| void | Clear () |
| Remove all stored shapes and texts. | |
| void | ClearShapes () |
| Remove all stored shapes. | |
| void | ClearTexts () |
| Remove all stored texts. | |
Protected Attributes | |
| ref array< ref Shape > | m_aShapes = {} |
| ref array< ref DebugTextWorldSpace > | m_aScreenSpaceTexts = {} |
Static Protected Attributes | |
| static const int | DEFAULT_SHAPE_COLOUR = Color.RED |
| static const ShapeFlags | DEFAULT_SHAPE_FLAGS = ShapeFlags.NOZBUFFER | ShapeFlags.TRANSP |
| static const int | DEFAULT_TEXT_COLOUR = Color.WHITE |
| static const int | DEFAULT_TEXT_BACKGROUND_COLOUR = 0x88000000 |
| static const DebugTextFlags | DEFAULT_TEXT_FLAGS = DebugTextFlags.CENTER | DebugTextFlags.FACE_CAMERA | DebugTextFlags.IN_WORLD |
| void SCR_DebugShapeManager.Add | ( | notnull DebugTextWorldSpace | text | ) |
Add an external text to be held by the manager.
| [in] | text |
| void SCR_DebugShapeManager.Add | ( | notnull Shape | shape | ) |
Add an external shape to be held by the manager.
| [in] | shape |
| Shape SCR_DebugShapeManager.AddAABBRectangleXZ | ( | vector | min, |
| vector | max, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create an axis-aligned horizontal rectangle.
| [in] | min | |
| [in] | max | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddArrow | ( | vector | from, |
| vector | to, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create an arrow.
| [in] | from | arrow's origin |
| [in] | to | arrrow's destination, the pointy thing |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddBBox | ( | vector | min, |
| vector | max, | ||
| int | colour = DEFAULT_SHAPE_COLOUR, | ||
| ShapeFlags | additionalFlags = 0 ) |
Create an axis-aligned bounding box.
| [in] | min | |
| [in] | max | |
| [in] | colour | the shape's colour |
| [in] | additionalFlags | additional Shape flags |
| Shape SCR_DebugShapeManager.AddCircleArcXZ | ( | vector | centre, |
| float | angleStartRad, | ||
| float | coveredAngleRad, | ||
| float | radius, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create a horizontal arc (portion of a circleĆ
| [in] | centre | |
| [in] | angleStartRad | counter-clockwise radians |
| [in] | coveredAngleRad | counter-clockwise radians - can be negative |
| [in] | radius | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddCircleSliceXZ | ( | vector | centre, |
| float | angleStartRad, | ||
| float | coveredAngleRad, | ||
| float | radius, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create a horizontal circle slice.
| [in] | centre | |
| [in] | angleStartRad | counter-clockwise radians |
| [in] | coveredAngleRad | counter-clockwise radians |
| [in] | radius | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddCircleXZ | ( | vector | centre, |
| float | radius, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create a horizontal circle.
| [in] | centre | |
| [in] | radius | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddLine | ( | vector | from, |
| vector | to, | ||
| int | colour = DEFAULT_SHAPE_COLOUR, | ||
| ShapeFlags | additionalFlags = 0 ) |
Create a straight line.
| [in] | from | origin |
| [in] | to | destination |
| [in] | colour | the shape's colour |
| [in] | additionalFlags | additional Shape flags |
| array< ref Shape > SCR_DebugShapeManager.AddParallelLines | ( | vector | origin, |
| vector | vectorDir, | ||
| float | length, | ||
| float | width, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create two parallel lines on the left and on the right of the provided virtual line.
| [in] | origin | |
| [in] | vectorDir | |
| [in] | length | |
| [in] | width | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddPolyLine | ( | notnull array< vector > | points, |
| int | colour = DEFAULT_SHAPE_COLOUR ) |
| [in] | points | from 2 up to 50 points (array will be clipped) |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddRectangle | ( | vector | origin, |
| vector | vectorDir, | ||
| float | length, | ||
| float | width, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create a rectangle.
| [in] | origin | |
| [in] | vectorDir | |
| [in] | length | |
| [in] | width | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddRectangleXZ | ( | vector | origin, |
| float | directionRad, | ||
| float | length, | ||
| float | width, | ||
| int | colour = DEFAULT_SHAPE_COLOUR ) |
Create a horizontal rectangle.
| [in] | origin | |
| [in] | directionRad | in counter-clockwise radians |
| [in] | length | |
| [in] | width | |
| [in] | colour | the shape's colour |
| Shape SCR_DebugShapeManager.AddSphere | ( | vector | centre, |
| float | radius, | ||
| int | colour = DEFAULT_SHAPE_COLOUR, | ||
| ShapeFlags | additionalFlags = 0 ) |
Create a sphere.
| [in] | centre | world position of the sphere's centre |
| [in] | radius | radius in metres |
| [in] | colour | the shape's colour |
| [in] | additionalFlags | additional Shape flags |
| DebugTextWorldSpace SCR_DebugShapeManager.AddText | ( | string | text, |
| vector | worldPos, | ||
| float | size = 2::0, | ||
| int | colour = DEFAULT_TEXT_COLOUR, | ||
| int | backgroundColour = DEFAULT_TEXT_BACKGROUND_COLOUR ) |
| [in] | text | |
| [in] | worldPos | |
| [in] | size | in metres |
| [in] | colour | |
| [in] | backgroundColour |
| void SCR_DebugShapeManager.Clear | ( | ) |
Remove all stored shapes and texts.
| void SCR_DebugShapeManager.ClearShapes | ( | ) |
Remove all stored shapes.
| void SCR_DebugShapeManager.ClearTexts | ( | ) |
Remove all stored texts.
| Shape SCR_DebugShapeManager.CreateTrapezoidalPrism | ( | vector | centerOfTopBasePos, |
| vector | directionUp, | ||
| float | smallBaseRadius, | ||
| float | largeBaseRadius, | ||
| float | height, | ||
| int | color, | ||
| int | subdivisions, | ||
| ShapeFlags | additionalFlags = 0 ) |
| [in] | centerOfTopBasePos | position in worldspace that is the center of the smaller (top) base |
| [in] | directionUp | normalized direction in worldspace that points toward larger (bottom) base |
| [in] | smallBaseRadius | |
| [in] | largeBaseRadius | |
| [in] | height | distance between smaller (top) base and center of larger (bottom) base |
| [in] | color | |
| [in] | subdivisions | |
| [in] | flags |
| void SCR_DebugShapeManager.Remove | ( | notnull DebugTextWorldSpace | text | ) |
Remove the provided text, if managed.
| [in] | shape |
| void SCR_DebugShapeManager.Remove | ( | notnull Shape | shape | ) |
Remove the provided shape, if managed.
| [in] | shape |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |