CmdLightUpsert
Upserts a light (Create or Update) in a specific realm.
Arguments
Accepts one of:
CmdLightCreateArgsCmdLightUpdateArgs
Key fields:
realmId(required)lightId(required)kind,position,directioncolor,groundColor,intensity,rangespotInnerOuter,layerMask,castShadow
Notes
- Light ownership is realm-scoped (
realmId). - Light culling and shadow allocation are resolved by the core each frame.
realmIdis late-bound for create operations: creating a light can happen before the referenced realm exists.
Response
Returns { success, message }.
On failure, the core also emits SystemEvent::Error (scope="command").
Documentation Vulfram Core