Skip to content

Kiln API / kiln / Mut

Function: Mut() ​

ts
function Mut<T>(trait): MutParam<T>;

Marks a trait as written by this system. Every other trait in the query arrives read-only, and the scheduler uses Mut() as the system's write set.

Type Parameters ​

Type Parameter
T extends Trait

Parameters ​

ParameterType
traitT

Returns ​

MutParam<T>