bakpakin / tiny-ecs

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

removeSystem is missing from metatable #3

Closed karai17 closed 9 years ago

karai17 commented 9 years ago

As the title says, you forgot to re-add removeSystem in your refactoring. I added it back in locally and it works fine.

worldMetaTable = {
    __index = {
        add = tiny.add,
        addEntity = tiny.addEntity,
        addSystem = tiny.addSystem,
        remove = tiny.remove,
        removeEntity = tiny.removeEntity,
        removeSystem = tiny.removeSystem, -- oops!
        update = tiny.update,
        clearEntities = tiny.clearEntities,
        clearSystems = tiny.clearSystems,
        getEntityCount = tiny.getEntityCount,
        getSystemCount = tiny.getSystemCount,
        getSystemIndex = tiny.getSystemIndex,
        setSystemIndex = tiny.setSystemIndex
    }
}
bakpakin commented 9 years ago

Just fixed this and released version 1.1-3. It's now on luarocks.

karai17 commented 9 years ago

Perfect, thanks!