Last active
May 17, 2020 11:49
-
-
Save abulka/36818b7092c8be2e81eb8bf1758752c9 to your computer and use it in GitHub Desktop.
TodoMVC-ECS Optimising
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
engine.system('dirty-todoitems', ['data', 'dirty'], (entity, {data, _}) => { | |
// do something with entity and data | |
// ... | |
entity.deleteComponent('dirty') // important! remove dirty flag | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment