pub fn register_command_methods(engine: &mut Engine)Expand description
Registers every command as a method on a rhai array, so a script
writes commands.spawn_cube([x, y, z]) instead of pushing the
command’s map shape by hand. The arguments are the command’s fields in
order, each taken as a dynamic value and serialized exactly like the
map form, so the two are equivalent. Generated from the same registry
as the command enum, so the script surface never drifts from it.