bakpakin / tiny-ecs

ECS for Lua
http://bakpakin.github.io/tiny-ecs/doc/
MIT License
675 stars 61 forks source link

Request: addEntity, addSystem, et cetera should return the data passed in #4

Closed karai17 closed 9 years ago

karai17 commented 9 years ago

The code below would be a handy shortcut.

local entity = self.world:addEntity {
    id       = 5,
    position = vec3(0, 0, 0)
}
bakpakin commented 9 years ago

Ok, that seems useful. Should also probably have the remove versions do that.

karai17 commented 9 years ago

That would also be useful!

On another note, I am gonna dial up Guinness World Records about your response time.


Landon Manning lmanning17@gmail.com

On 6 July 2015 at 22:57, Calvin Rose notifications@github.com wrote:

Ok, that seems useful. Should also probably have the remove versions do that.

— Reply to this email directly or view it on GitHub https://github.com/bakpakin/tiny-ecs/issues/4#issuecomment-119044710.

bakpakin commented 9 years ago

I just happened to check my email then :)