Applies one already-validated MwlCommand to a world, without a runtime around it.
MwlCommand
import { createWorld, execute } from '@datamoc/mw_games/mwl';const world = createWorld();execute(world, { name: 'set_variable', target: 'gold', value: 50 });console.log(world.variables.gold); // 50 Copy
import { createWorld, execute } from '@datamoc/mw_games/mwl';const world = createWorld();execute(world, { name: 'set_variable', target: 'gold', value: 50 });console.log(world.variables.gold); // 50
Applies one already-validated
MwlCommandto a world, without a runtime around it.