Runtime Docs

Runtime Helpers

Runtime Index

Purpose

Helper macros construct stable ids, Variant values, params arrays, and tag lists for runtime APIs.

Runtime Helpers explains behavior, constraints, and practical usage so implementation decisions stay consistent across scripts and scenes.

API Source

Functions

sid!var!method!func!signal!tag!tags!variant!params!

Enums

// not documented yet for this module

Constants

id + variant helper macro set

Types

ScriptMemberIDSignalIDTagIDVariant

Usage Pattern

let sig = signal!("enemy_defeated");let tag_list = tags!["enemy", "alive"];let args = params![enemy_id, 50_i32];

Key Details

sid!, var!, method!, and func! create ScriptMemberID values.

signal! creates SignalID values.

tag! and tags! create tag ids and lists.

variant! and params! prepare dynamic call data.