{"action":"created","issue":{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/151","repository_url":"https://api.github.com/repos/sschmid/Entitas-CSharp","labels_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/151/comments","events_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/151/events","html_url":"https://github.com/sschmid/Entitas-CSharp/issues/151","id":173638308,"number":151,"title":"GroupChanged","user":{"login":"RvRooijen","id":21289688,"avatar_url":"https://avatars.githubusercontent.com/u/21289688?v=3","gravatar_id":"","url":"https://api.github.com/users/RvRooijen","html_url":"https://github.com/RvRooijen","followers_url":"https://api.github.com/users/RvRooijen/followers","following_url":"https://api.github.com/users/RvRooijen/following{/other_user}","gists_url":"https://api.github.com/users/RvRooijen/gists{/gist_id}","starred_url":"https://api.github.com/users/RvRooijen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RvRooijen/subscriptions","organizations_url":"https://api.github.com/users/RvRooijen/orgs","repos_url":"https://api.github.com/users/RvRooijen/repos","events_url":"https://api.github.com/users/RvRooijen/events{/privacy}","received_events_url":"https://api.github.com/users/RvRooijen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-28T09:42:28Z","updated_at":"2016-08-28T19:46:24Z","closed_at":null,"body":"If i get a group like so:\r\nvar positionEntities = _pool.GetGroup(Matcher.AllOf(Matcher.GameElement, Matcher.Position));\r\n        \r\nAnd watch the group\r\npositionEntities.OnEntityAdded += (group, entity, index, component) => OnPositionEntityAdded(entity, component);\r\n\r\nIs there any way to get both the component changes that i am watching ?\r\n\r\nvoid OnPositionEntityAdded(Entity entity, IComponent component)\r\n\r\nThe component parameter is now always filled with the last component added to the Entity.\r\n\r\nThanks in advance !"},"comment":{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/comments/242995089","html_url":"https://github.com/sschmid/Entitas-CSharp/issues/151#issuecomment-242995089","issue_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/151","id":242995089,"user":{"login":"RvRooijen","id":21289688,"avatar_url":"https://avatars.githubusercontent.com/u/21289688?v=3","gravatar_id":"","url":"https://api.github.com/users/RvRooijen","html_url":"https://github.com/RvRooijen","followers_url":"https://api.github.com/users/RvRooijen/followers","following_url":"https://api.github.com/users/RvRooijen/following{/other_user}","gists_url":"https://api.github.com/users/RvRooijen/gists{/gist_id}","starred_url":"https://api.github.com/users/RvRooijen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RvRooijen/subscriptions","organizations_url":"https://api.github.com/users/RvRooijen/orgs","repos_url":"https://api.github.com/users/RvRooijen/repos","events_url":"https://api.github.com/users/RvRooijen/events{/privacy}","received_events_url":"https://api.github.com/users/RvRooijen/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T19:46:24Z","updated_at":"2016-08-28T19:46:24Z","body":"Alright. I added a type check and now it behaves the way i want :)\r\n\r\n```\r\nvoid OnEntityRemoved(Entity entity, IComponent component)\r\n    {\r\n        if (component.GetType() != typeof(PositionComponent))\r\n            return;\r\n\r\n        PositionComponent p = (PositionComponent)component;\r\n        _pool.gridCache.Grid[p.X, p.Y].Remove(entity);\r\n    }\r\n```"}}
{"actor":{"display_login":"RvRooijen"}}