{"action":"created","issue":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/814","repository_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine","labels_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/814/comments","events_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/814/events","html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/issues/814","id":173334637,"number":814,"title":"[Discussion] Room and Furniture awareness of each other","user":{"login":"koosemose","id":6334643,"avatar_url":"https://avatars.githubusercontent.com/u/6334643?v=3","gravatar_id":"","url":"https://api.github.com/users/koosemose","html_url":"https://github.com/koosemose","followers_url":"https://api.github.com/users/koosemose/followers","following_url":"https://api.github.com/users/koosemose/following{/other_user}","gists_url":"https://api.github.com/users/koosemose/gists{/gist_id}","starred_url":"https://api.github.com/users/koosemose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koosemose/subscriptions","organizations_url":"https://api.github.com/users/koosemose/orgs","repos_url":"https://api.github.com/users/koosemose/repos","events_url":"https://api.github.com/users/koosemose/events{/privacy}","received_events_url":"https://api.github.com/users/koosemose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-25T23:23:14Z","updated_at":"2016-08-26T06:56:29Z","closed_at":null,"body":"I think it would be very useful for Furniture to know not only what room it is in through tile, but in the case of furnitures that enclose rooms (and therefore won't actually be in a room) to know what rooms they border, so that, for example, an airlock door could only open when pressures are equal without having to manually search through its neighbors every time.\r\n\r\nAdditionally, if a room could be aware of what furniture it contains (and borders, perhaps separately) without having to search through every tile for a furniture, it would simplify furnitures in a room working together, without any additional special code (such as room designations), so using an airlock as an example, an airlock door could ask for any air pumps in either adjacent room (perhaps ignoring the outside room) when someone requests that it open, and pump air in or out until pressure equalises between it's two sides.\r\n\r\nI feel reasonably confident that a room could get it's initial furniture when flood filling, and then when non-enclosing furniture is added, it could register itself with rooms as appropriate (if I understand the system properly, enclosing furniture shouldn't need to do it special since it should always cause a flood fill, but I haven't really looked deep into that code, other than when quill did it in the tutorial)."},"comment":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/comments/242645555","html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/issues/814#issuecomment-242645555","issue_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/814","id":242645555,"user":{"login":"vogonistic","id":159568,"avatar_url":"https://avatars.githubusercontent.com/u/159568?v=3","gravatar_id":"","url":"https://api.github.com/users/vogonistic","html_url":"https://github.com/vogonistic","followers_url":"https://api.github.com/users/vogonistic/followers","following_url":"https://api.github.com/users/vogonistic/following{/other_user}","gists_url":"https://api.github.com/users/vogonistic/gists{/gist_id}","starred_url":"https://api.github.com/users/vogonistic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogonistic/subscriptions","organizations_url":"https://api.github.com/users/vogonistic/orgs","repos_url":"https://api.github.com/users/vogonistic/repos","events_url":"https://api.github.com/users/vogonistic/events{/privacy}","received_events_url":"https://api.github.com/users/vogonistic/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T06:56:29Z","updated_at":"2016-08-26T06:56:29Z","body":"Can't believe that I didn't think of the room graph earlier. It's going to be a cornerstone in speeding up pathfinding as well."}}
{"actor":{"display_login":"vogonistic"}}