#How to approach dynamic entity building?

3 messages · Page 1 of 1 (latest)

whole nimbus
#

My problem is that i currently have a ton of code just for spawning various entities, so i thought i might as well abstract those into definitions via json or smth alike. Now the main issue with this approach is that i have no idea how to build entities via a builder pattern, unless i .insert a component to an existing entity, but thats very inefficient imo. Is there a way to dynamically construct bundles at runtime?

sand cargo
boreal stratus