junkdog / artemis-odb

A continuation of the popular Artemis ECS framework
BSD 2-Clause "Simplified" License
776 stars 111 forks source link

world.inject(object) should inject world into the object #479

Closed schosin closed 7 years ago

schosin commented 7 years ago

To allow entity creation in non-artemis classes without manually injecting the world instance.

schosin commented 7 years ago

implemented it here: schosin/artemis-odb@df59213675ff5086aa494142fa497372f49638d1

looks kinda dirty to me. any better ideas or is this okay?