{"action":"created","issue":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1264","repository_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine","labels_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1264/labels{/name}","comments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1264/comments","events_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1264/events","html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/issues/1264","id":176215950,"number":1264,"title":"XML Reading/Layout","user":{"login":"Geoffrotism","id":5430964,"avatar_url":"https://avatars.githubusercontent.com/u/5430964?v=3","gravatar_id":"","url":"https://api.github.com/users/Geoffrotism","html_url":"https://github.com/Geoffrotism","followers_url":"https://api.github.com/users/Geoffrotism/followers","following_url":"https://api.github.com/users/Geoffrotism/following{/other_user}","gists_url":"https://api.github.com/users/Geoffrotism/gists{/gist_id}","starred_url":"https://api.github.com/users/Geoffrotism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geoffrotism/subscriptions","organizations_url":"https://api.github.com/users/Geoffrotism/orgs","repos_url":"https://api.github.com/users/Geoffrotism/repos","events_url":"https://api.github.com/users/Geoffrotism/events{/privacy}","received_events_url":"https://api.github.com/users/Geoffrotism/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-11T02:44:24Z","updated_at":"2016-09-13T01:22:55Z","closed_at":null,"body":"I have very little experience with xml, in fact the only experience i have is from Quill's videos on this project and a little tinkering I have done. It seemed odd to me that there isn't a better way to have a multitude of objects without an xml document becoming messy. for example: \r\nLet's say there are 40 different types of materials that various things can be made out of (rock, steel, wood, etc.).\r\nThen you have 40 different types of furniture (chairs, stools, beds etc.) \r\nThis would be 1600 unique combinations and would each need to be a whole section of code within the xml documents. Is this not inefficient? I thought that making an extra header, then applying all uniform attributes to that header would mean less and cleaner coding. \r\n```\r\n<Furniture>\r\n    <Walls>\r\n        <MovementCost>0</MovementCost>\r\n        ....\r\n        ....\r\n         <Wooden>\r\n                <Name> Wooden Wall</Name>\r\n                <MaxHealth>100</MaxHealth>\r\n         </Wooden>\r\n         <Steel>\r\n                <Name> Steel Wall</Name>\r\n                <MaxHealth>300</MaxHealth>\r\n         </Steel>\r\n    </Walls>\r\n</Furniture>\r\n```\r\nThis is an idea I had but two problems jumped out at me.\r\n1. What if you wanted all walls to have a property (like movementCost) to be a value (like 0), but then you want ONE wall type to be passable. Something like... a wall that only stops bullets (crazy example sorry). \r\n2. It creates a more complicated reading method to be implemented/ redone completely. \r\n\r\nI still think the benefits are highly worthwhile if it is doable.\r\n\r\nI welcome your thoughts and criticisms."},"comment":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/comments/246545546","html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/issues/1264#issuecomment-246545546","issue_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1264","id":246545546,"user":{"login":"Geoffrotism","id":5430964,"avatar_url":"https://avatars.githubusercontent.com/u/5430964?v=3","gravatar_id":"","url":"https://api.github.com/users/Geoffrotism","html_url":"https://github.com/Geoffrotism","followers_url":"https://api.github.com/users/Geoffrotism/followers","following_url":"https://api.github.com/users/Geoffrotism/following{/other_user}","gists_url":"https://api.github.com/users/Geoffrotism/gists{/gist_id}","starred_url":"https://api.github.com/users/Geoffrotism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geoffrotism/subscriptions","organizations_url":"https://api.github.com/users/Geoffrotism/orgs","repos_url":"https://api.github.com/users/Geoffrotism/repos","events_url":"https://api.github.com/users/Geoffrotism/events{/privacy}","received_events_url":"https://api.github.com/users/Geoffrotism/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T01:22:55Z","updated_at":"2016-09-13T01:22:55Z","body":"I like the idea of allowing items to be made out of all 40 materials but I understand it likely won't happen."}}
{"actor":{"display_login":"Geoffrotism"}}