{"action":"created","issue":{"url":"https://api.github.com/repos/junkdog/artemis-odb/issues/248","labels_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/248/comments","events_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/248/events","html_url":"https://github.com/junkdog/artemis-odb/issues/248","id":58484455,"number":248,"title":"SubscriptionListener doesn't inform about first entities","user":{"login":"Namek","id":31058,"avatar_url":"https://avatars.githubusercontent.com/u/31058?v=3","gravatar_id":"","url":"https://api.github.com/users/Namek","html_url":"https://github.com/Namek","followers_url":"https://api.github.com/users/Namek/followers","following_url":"https://api.github.com/users/Namek/following{/other_user}","gists_url":"https://api.github.com/users/Namek/gists{/gist_id}","starred_url":"https://api.github.com/users/Namek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Namek/subscriptions","organizations_url":"https://api.github.com/users/Namek/orgs","repos_url":"https://api.github.com/users/Namek/repos","events_url":"https://api.github.com/users/Namek/events{/privacy}","received_events_url":"https://api.github.com/users/Namek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/junkdog/artemis-odb/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/junkdog/artemis-odb/milestones/14","labels_url":"https://api.github.com/repos/junkdog/artemis-odb/milestones/14/labels","id":817594,"number":14,"title":"artemis-0.10.0","description":"","creator":{"login":"junkdog","id":804039,"avatar_url":"https://avatars.githubusercontent.com/u/804039?v=3","gravatar_id":"","url":"https://api.github.com/users/junkdog","html_url":"https://github.com/junkdog","followers_url":"https://api.github.com/users/junkdog/followers","following_url":"https://api.github.com/users/junkdog/following{/other_user}","gists_url":"https://api.github.com/users/junkdog/gists{/gist_id}","starred_url":"https://api.github.com/users/junkdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junkdog/subscriptions","organizations_url":"https://api.github.com/users/junkdog/orgs","repos_url":"https://api.github.com/users/junkdog/repos","events_url":"https://api.github.com/users/junkdog/events{/privacy}","received_events_url":"https://api.github.com/users/junkdog/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":11,"state":"open","created_at":"2014-10-07T22:57:29Z","updated_at":"2015-02-23T19:22:32Z","due_on":"2014-12-20T08:00:00Z","closed_at":null},"comments":9,"created_at":"2015-02-22T01:05:26Z","updated_at":"2015-02-23T19:22:32Z","closed_at":"2015-02-23T19:22:32Z","body":"When I register `EntitySubscription.SubscriptionListener` (through ugly reflected inspection) I get informed only about entities added/removed during the game.\r\n\r\nI've got `GameSessionManager extends Manager` which has overriden `initialize()` method. That method adds some entities to the world. The problem is that I don't get informed about those entities added in through that method. @junkdog Is that correct behavior? If it is, then probably any workaround to get information about ALL added/removed entities?\r\n\r\nSide note: I'm working on my custom entity tracker (probably something similiar to `dominatrix-odb`)"},"comment":{"url":"https://api.github.com/repos/junkdog/artemis-odb/issues/comments/75612210","html_url":"https://github.com/junkdog/artemis-odb/issues/248#issuecomment-75612210","issue_url":"https://api.github.com/repos/junkdog/artemis-odb/issues/248","id":75612210,"user":{"login":"Namek","id":31058,"avatar_url":"https://avatars.githubusercontent.com/u/31058?v=3","gravatar_id":"","url":"https://api.github.com/users/Namek","html_url":"https://github.com/Namek","followers_url":"https://api.github.com/users/Namek/followers","following_url":"https://api.github.com/users/Namek/following{/other_user}","gists_url":"https://api.github.com/users/Namek/gists{/gist_id}","starred_url":"https://api.github.com/users/Namek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Namek/subscriptions","organizations_url":"https://api.github.com/users/Namek/orgs","repos_url":"https://api.github.com/users/Namek/repos","events_url":"https://api.github.com/users/Namek/events{/privacy}","received_events_url":"https://api.github.com/users/Namek/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T19:22:32Z","updated_at":"2015-02-23T19:22:32Z","body":"> Could you try it now - it's on the extract-base-system-from-es branch? I I think I have it working, unless I've missed an edge case.\r\n\r\nWell, ok. First - I like results of #247! But I wonder why `VoidEntitySystem`  does extend `BaseSystem` and not `EnitySystem` (hence the name). This way I can't simply implement `inserted` and `removed` when I have no aspect and still want to have some kind of `update()` method (currently: `processSystem()`). Instead, I can...\r\n\r\n> While maybe not what you're looking for, you can pass a new Aspect.Builder to AspectSubscriptionManager in order to retrieve the EntitySubscription instance.\r\n\r\nand I did that this way:\r\n\r\n```java\r\nAspectSubscriptionManager am = world.getManager(AspectSubscriptionManager.class);\r\nam.get(Aspect.all()).addSubscriptionListener(this);\r\n```\r\n\r\n```java\r\npublic class EntityTracker extends VoidEntitySystem implements EntitySubscription.SubscriptionListener { // ...\r\n```\r\n\r\nand works :) so I'm closing this issue. Thanks!"}}