Skip to content

Instantly share code, notes, and snippets.

@shargoj
Created March 7, 2014 19:46
Show Gist options
  • Save shargoj/9418497 to your computer and use it in GitHub Desktop.
Save shargoj/9418497 to your computer and use it in GitHub Desktop.
entities->remove_if([] (const Entity& e) {
return e.has_component("TTL")
&& dynamic_cast<const TTLComponent*>(e.get_component("TTL"))->is_dead();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment