registerStatField
Call Signature
Section titled “Call Signature”registerStatField<
T>(stat,trait,field):Disposer
Makes each step set trait‘s field, one that holds a number, to the
stat stat, resolved, on an entity that has both, as it sets Health’s maximum from
maxHealth. The devtools’ inspector hides the field’s own slider
there, since the next step would overwrite an edit, and slides the
stat’s base in its Stats card instead. The return forgets it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends Trait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
stat |
string |
trait |
T |
field |
StatField<T> |
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”registerStatField<
S>(stat,predicted,field):Disposer
As registerStatField of koota’s trait, of a predicted trait: the
stat’s copy into her record runs in a predicted system, which may write it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
S extends Schema |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
stat |
string |
predicted |
PredictedTrait<S> |
field |
StatField<Trait<S>> |