‹›
Advanced API

Handles and Return Values

Never add to a handle, cast it to a pointer, serialize it as permanent identity or pass it to a different world. Retain your own stable gameplay ID separately. A generation protects against accidental slot reuse but cannot repair wrong ownership in application code.

APIContract
Creator handle > 0 / 0Created identity / failure for raw resource constructors.
Command 1 / 0Success / failure for raw boolean commands.
Property scalarMay legitimately be zero; consult its own contract and error channel.
Query struct / arrayInspect error_code or native error channel before interpreting a miss or empty array.