Skip to content

applyEdit

applyEdit(world, __namedParameters): boolean

Defined in: packages/engine/src/gameplay/replication/edit.ts:13

Writes a devtools edit onto world: the prop of the named trait on the entity the dump files under entity, a number clamped to the range the trait’s behaviour declares for it. Refuses an entity, trait or prop the world does not hold, a trait whose behaviour declares no ranges, a number with no declared range, and a value of another type than the prop’s. Returns whether it wrote.

Parameter Type
world World
__namedParameters EditMessage

boolean