{"action":"opened","issue":{"url":"https://api.github.com/repos/junkdog/artemis-odb/issues/485","repository_url":"https://api.github.com/repos/junkdog/artemis-odb","labels_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/485/comments","events_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/485/events","html_url":"https://github.com/junkdog/artemis-odb/issues/485","id":197511153,"number":485,"title":"GroupManager allow add entity to several groups at once.","user":{"login":"sonirico","id":9306588,"avatar_url":"https://avatars.githubusercontent.com/u/9306588?v=3","gravatar_id":"","url":"https://api.github.com/users/sonirico","html_url":"https://github.com/sonirico","followers_url":"https://api.github.com/users/sonirico/followers","following_url":"https://api.github.com/users/sonirico/following{/other_user}","gists_url":"https://api.github.com/users/sonirico/gists{/gist_id}","starred_url":"https://api.github.com/users/sonirico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonirico/subscriptions","organizations_url":"https://api.github.com/users/sonirico/orgs","repos_url":"https://api.github.com/users/sonirico/repos","events_url":"https://api.github.com/users/sonirico/events{/privacy}","received_events_url":"https://api.github.com/users/sonirico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-25T18:34:06Z","updated_at":"2016-12-25T18:34:06Z","closed_at":null,"body":"I noticed that much of my code looks like\r\n```java\r\n   world.getSystem(GroupManager.class).add(e, \"enemies\");\r\n   world.getSystem(GroupManager.class).add(e, \"collidable-dynamic\");\r\n   world.getSystem(GroupManager.class).add(e, \"big\");\r\n```\r\nI think it could be pretty handy something like\r\n```java\r\n   world.getSystem(GroupManager.class).add(e, \"enemies\").add(e, \"big\") ...\r\n```\r\n\r\nor even \r\n```java\r\n   world.getSystem(GroupManager.class).add(e, new String [] { \"enemies\", \"collidable\", \"big\"});\r\n```\r\n\r\nIt would just take a `return this` for the first option and a simple foreach for the second. This could also apply to remove methods if necessary.\r\n"}}
{"actor":{"display_login":"sonirico"}}