EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

Context

Frozen invocation context with checked integer helpers.

Signature

{ clamp: (SignedInt, SignedInt, SignedInt) -> SignedInt, div_floor: (SignedInt, SignedInt) -> SignedInt, event: E, event_id: OpaqueRef, format_int: (SignedInt) -> DisplayText, invocation_id: OpaqueRef, max: (SignedInt, SignedInt) -> SignedInt, min: (SignedInt, SignedInt) -> SignedInt, mul_div: (SignedInt, SignedInt, SignedInt) -> SignedInt, owner: OwnerRef, parameters: P, random_int: (Name, Count, SignedInt, SignedInt) -> SignedInt, read: Read }

Fields

NameTypeMeaning
clamp(SignedInt, SignedInt, SignedInt) -> SignedIntClamp an integer to inclusive bounds.
div_floor(SignedInt, SignedInt) -> SignedIntChecked integer division rounded toward negative infinity.
eventETyped event payload selected by the script manifest.
event_idOpaqueRefStable ID of the originating committed event.
Length: 1…256; Pattern: ^[\s\S]+$
format_int(SignedInt) -> DisplayTextFormat an exact integer without locale-dependent conversion.
invocation_idOpaqueRefStable ID for this handler invocation.
Length: 1…256; Pattern: ^[\s\S]+$
max(SignedInt, SignedInt) -> SignedIntReturn the larger integer.
min(SignedInt, SignedInt) -> SignedIntReturn the smaller integer.
mul_div(SignedInt, SignedInt, SignedInt) -> SignedIntChecked multiply-then-divide using an exact integer intermediate.
ownerOwnerRefResolved owner of this invocation.
parametersPExact parameter record from the selected content definition.
random_int(Name, Count, SignedInt, SignedInt) -> SignedIntDeterministic named-stream draw with an explicit index and inclusive bounds.
readReadRead-only functions over the frozen invocation snapshot.