I'd like to be able to do something like the following so I can add a Name component to my entity.
local entity = world.spawn()
world.add_default_component(entity, types.MyType)
world.insert_component(entity, types.Name, construct(types.Name, {
name "My Entity"
}))
-- or
world.insert_name(entity, "My Entity")
I haven't been able to get anything to work using construct or Name::new("My Entity") so I'm not sure if it's currently possible to even do this?