ForceScript API Quick Reference: Difference between revisions

From DF21 Wiki
(Created page with "== Basic types == {| |- | <code>int</code> | signed 32-bit integer |- | <code>uint</code> | unsigned 32-bit integer |- | <code>float</code> | 32-bit floating point number |- | <code>bool</code> | boolean |- | <code>string</code> | string |} == Arrays and vectors == {| |- | <code>array</code> | an array |- | <code>float2</code> | a vector of 2 floats |- | <code>float3</code> | a vector of 3 floats |- | <code>float4</code> | a vector of 3 floats |}")
 
Line 32: Line 32:
| <code>float4</code>
| <code>float4</code>
| a vector of 3 floats
| a vector of 3 floats
|-
| <code>float2x2</code>
| a 2x2 matrix of floats
|-
| <code>float3x3</code>
| a 3x3 matrix of floats
|-
| <code>float4x4</code>
| a 4x4 matrix of floats
|}
|}

Revision as of 06:50, 15 November 2026

Basic types

int signed 32-bit integer
uint unsigned 32-bit integer
float 32-bit floating point number
bool boolean
string string

Arrays and vectors

array an array
float2 a vector of 2 floats
float3 a vector of 3 floats
float4 a vector of 3 floats
float2x2 a 2x2 matrix of floats
float3x3 a 3x3 matrix of floats
float4x4 a 4x4 matrix of floats