{"action":"created","issue":{"url":"https://api.github.com/repos/chris-morgan/anymap/issues/18","labels_url":"https://api.github.com/repos/chris-morgan/anymap/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/chris-morgan/anymap/issues/18/comments","events_url":"https://api.github.com/repos/chris-morgan/anymap/issues/18/events","html_url":"https://github.com/chris-morgan/anymap/issues/18","id":62233507,"number":18,"title":"Add ability to check for and retrieve a value by TypeId","user":{"login":"palodequeso","id":240517,"avatar_url":"https://avatars.githubusercontent.com/u/240517?v=3","gravatar_id":"","url":"https://api.github.com/users/palodequeso","html_url":"https://github.com/palodequeso","followers_url":"https://api.github.com/users/palodequeso/followers","following_url":"https://api.github.com/users/palodequeso/following{/other_user}","gists_url":"https://api.github.com/users/palodequeso/gists{/gist_id}","starred_url":"https://api.github.com/users/palodequeso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palodequeso/subscriptions","organizations_url":"https://api.github.com/users/palodequeso/orgs","repos_url":"https://api.github.com/users/palodequeso/repos","events_url":"https://api.github.com/users/palodequeso/events{/privacy}","received_events_url":"https://api.github.com/users/palodequeso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-16T23:15:48Z","updated_at":"2015-03-24T02:44:08Z","closed_at":null,"body":"I'm trying to write an entity component system for game development, and I've gotten to the point where I would like to start caching lists of components for a system, so my first thought was to have a component trait that returns a list of TypeIds which describes which component types are required. Then the idea is to iterate over them when it is time to update the list of components and retrieve the value of the AnyMap by the TypeId. Currently there doesn't seem to be a way to do that exposed in your library, but it doesn't look like it would be too hard, but I'm not confident in my Rust skills yet to make a pull request myself.\r\n\r\nMy request is for a set of methods like contains_typeid, get_by_typeid, etc..."},"comment":{"url":"https://api.github.com/repos/chris-morgan/anymap/issues/comments/85311103","html_url":"https://github.com/chris-morgan/anymap/issues/18#issuecomment-85311103","issue_url":"https://api.github.com/repos/chris-morgan/anymap/issues/18","id":85311103,"user":{"login":"chris-morgan","id":392868,"avatar_url":"https://avatars.githubusercontent.com/u/392868?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-morgan","html_url":"https://github.com/chris-morgan","followers_url":"https://api.github.com/users/chris-morgan/followers","following_url":"https://api.github.com/users/chris-morgan/following{/other_user}","gists_url":"https://api.github.com/users/chris-morgan/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-morgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-morgan/subscriptions","organizations_url":"https://api.github.com/users/chris-morgan/orgs","repos_url":"https://api.github.com/users/chris-morgan/repos","events_url":"https://api.github.com/users/chris-morgan/events{/privacy}","received_events_url":"https://api.github.com/users/chris-morgan/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T02:44:08Z","updated_at":"2015-03-24T02:44:08Z","body":"How does 143ee062680311ca9c2ed5b7089bb0d741bc17c0 look, @palodequeso? It evolved a little further as I started writing it and the idea of producing two stacked rather than parallel layers popped into my head. I think it’s panned out quite nicely."}}