{"action":"created","issue":{"url":"https://api.github.com/repos/PDeveloper/eskimo/issues/6","repository_url":"https://api.github.com/repos/PDeveloper/eskimo","labels_url":"https://api.github.com/repos/PDeveloper/eskimo/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/PDeveloper/eskimo/issues/6/comments","events_url":"https://api.github.com/repos/PDeveloper/eskimo/issues/6/events","html_url":"https://github.com/PDeveloper/eskimo/issues/6","id":153382333,"number":6,"title":"Support children class in view","user":{"login":"buckle2000","id":10850402,"avatar_url":"https://avatars.githubusercontent.com/u/10850402?v=3","gravatar_id":"","url":"https://api.github.com/users/buckle2000","html_url":"https://github.com/buckle2000","followers_url":"https://api.github.com/users/buckle2000/followers","following_url":"https://api.github.com/users/buckle2000/following{/other_user}","gists_url":"https://api.github.com/users/buckle2000/gists{/gist_id}","starred_url":"https://api.github.com/users/buckle2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckle2000/subscriptions","organizations_url":"https://api.github.com/users/buckle2000/orgs","repos_url":"https://api.github.com/users/buckle2000/repos","events_url":"https://api.github.com/users/buckle2000/events{/privacy}","received_events_url":"https://api.github.com/users/buckle2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-06T05:44:20Z","updated_at":"2016-08-01T18:24:52Z","closed_at":null,"body":"If I have a interface represent the graphics of an entity.\r\n```\r\ninterface RenderComponent {\r\n\tfunction getDrawable():IBitmapDrawable;\r\n}\r\n```\r\nand this implement:\r\n```\r\nclass SpriteRenderComponent implements RenderComponent\r\n{\t\r\n\tpublic var target:Sprite;\r\n\t\r\n\tpublic function new() {\r\n\t\ttarget = new Sprite();\r\n\t}\r\n\t\r\n\tpublic function getDrawable():IBitmapDrawable {\r\n\t\treturn target;\r\n\t}\r\n}\r\n```\r\nand I create a view:\r\n```\r\nvar v:View = new View([RenderComponent],null,context);\r\n```\r\nadd an entity:\r\n```\r\nvar e:Entity = context.entities.create();\r\ne.set(new SpriteRenderComponent ());\r\n```\r\nBut I can't get the `SpriteRenderComponent` using `context.entities`.\r\nAlso, this doesn't work either: \r\n```\r\nvar e:Entity = context.entities.create();\r\ne.set(cast (a,RenderComponent));\r\n```\r\nI found that it is related to some methods in `ComponentManager.hx`.\r\n\r\nAnyway, am I supposed to do this, does it volatile the concept of ECS?"},"comment":{"url":"https://api.github.com/repos/PDeveloper/eskimo/issues/comments/236664101","html_url":"https://github.com/PDeveloper/eskimo/issues/6#issuecomment-236664101","issue_url":"https://api.github.com/repos/PDeveloper/eskimo/issues/6","id":236664101,"user":{"login":"buckle2000","id":10850402,"avatar_url":"https://avatars.githubusercontent.com/u/10850402?v=3","gravatar_id":"","url":"https://api.github.com/users/buckle2000","html_url":"https://github.com/buckle2000","followers_url":"https://api.github.com/users/buckle2000/followers","following_url":"https://api.github.com/users/buckle2000/following{/other_user}","gists_url":"https://api.github.com/users/buckle2000/gists{/gist_id}","starred_url":"https://api.github.com/users/buckle2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckle2000/subscriptions","organizations_url":"https://api.github.com/users/buckle2000/orgs","repos_url":"https://api.github.com/users/buckle2000/repos","events_url":"https://api.github.com/users/buckle2000/events{/privacy}","received_events_url":"https://api.github.com/users/buckle2000/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T18:24:52Z","updated_at":"2016-08-01T18:24:52Z","body":"So then [`RenderComponent`, `SpriteComponent`] need to share sprite instance."}}
{"actor":{"display_login":"buckle2000"}}