Intrinsics
Intrinsics are low-level operations that are natively supported in REDscript.
Equals
(A, A) -> Bool
Equality check (for references, enums, strings and booleans)
NotEquals
(A, A) -> Bool
Inequality check (same as above)
IsDefined
(ref<A>) -> Bool
(wref<A>) -> Bool
Null check
ToString
(A) -> String
String conversion
EnumInt
(A) -> Int32
Enum-to-Int32 conversion
IntEnum
(Int32) -> A
Int32-to-enum conversion
ToVariant
(A) -> Variant
Variant constructor
FromVariant
(Variant) -> A
Variant extractor (fails at runtime if the type does not match)
ArraySize
([A]) -> Int32
([A; N]) -> Int32
ArrayPush
([A], A) -> Void
ArrayPop
([A]) -> A
ArrayClear
([A]) -> Void
ArrayResize
([A], Int32) -> Void
ArrayFindFirst
([A], A) -> Int32
([A; N], A) -> Int32
ArrayFindLast
([A], A) -> Int32
([A; N], A) -> Int32
ArrayContains
([A], A) -> Bool
([A; N], A) -> Bool
ArrayCount
([A], A) -> Int32
([A; N], A) -> Int32
ArraySort
([A]) -> Void
Only accepts arrays of primitives
ArrayInsert
([A], Int32, A) -> Void
ArrayRemove
([A], A) -> Bool
ArrayGrow
([A], Int32) -> Void
ArrayErase
([A], Int32) -> Void
ArrayLast
([A]) -> A
([A; N]) -> A
Legend:
[A]
- array of A[A; N]
static array of A with size N
Last updated