ecs-lua
ecs-lua copied to clipboard
Extends passed table on `newSystem` and `sortedSystem`.
Prevent passed table from directly modified. This is inspired by kitito's stateful.lua library.
The passed table works as base table (using metatable __index). This prevent accident when system table get modified during process and left after effects on next another world with same system, just to be sure.