{"action":"created","issue":{"url":"https://api.github.com/repos/ldicker83/OPHD/issues/4","repository_url":"https://api.github.com/repos/ldicker83/OPHD","labels_url":"https://api.github.com/repos/ldicker83/OPHD/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ldicker83/OPHD/issues/4/comments","events_url":"https://api.github.com/repos/ldicker83/OPHD/issues/4/events","html_url":"https://github.com/ldicker83/OPHD/issues/4","id":316636238,"number":4,"title":"Implement warehouse interface","user":{"login":"ldicker83","id":13858902,"avatar_url":"https://avatars3.githubusercontent.com/u/13858902?v=4","gravatar_id":"","url":"https://api.github.com/users/ldicker83","html_url":"https://github.com/ldicker83","followers_url":"https://api.github.com/users/ldicker83/followers","following_url":"https://api.github.com/users/ldicker83/following{/other_user}","gists_url":"https://api.github.com/users/ldicker83/gists{/gist_id}","starred_url":"https://api.github.com/users/ldicker83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldicker83/subscriptions","organizations_url":"https://api.github.com/users/ldicker83/orgs","repos_url":"https://api.github.com/users/ldicker83/repos","events_url":"https://api.github.com/users/ldicker83/events{/privacy}","received_events_url":"https://api.github.com/users/ldicker83/received_events","type":"User","site_admin":false},"labels":[{"id":885090557,"url":"https://api.github.com/repos/ldicker83/OPHD/labels/task","name":"task","color":"7057ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ldicker83/OPHD/milestones/1","html_url":"https://github.com/ldicker83/OPHD/milestone/1","labels_url":"https://api.github.com/repos/ldicker83/OPHD/milestones/1/labels","id":3287462,"number":1,"title":"v0.7.5","description":"Implements warehouse storage, robot command and rounds out several other features.","creator":{"login":"ldicker83","id":13858902,"avatar_url":"https://avatars3.githubusercontent.com/u/13858902?v=4","gravatar_id":"","url":"https://api.github.com/users/ldicker83","html_url":"https://github.com/ldicker83","followers_url":"https://api.github.com/users/ldicker83/followers","following_url":"https://api.github.com/users/ldicker83/following{/other_user}","gists_url":"https://api.github.com/users/ldicker83/gists{/gist_id}","starred_url":"https://api.github.com/users/ldicker83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldicker83/subscriptions","organizations_url":"https://api.github.com/users/ldicker83/orgs","repos_url":"https://api.github.com/users/ldicker83/repos","events_url":"https://api.github.com/users/ldicker83/events{/privacy}","received_events_url":"https://api.github.com/users/ldicker83/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2018-04-23T01:43:56Z","updated_at":"2018-04-23T01:55:00Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-04-23T01:55:00Z","updated_at":"2018-04-23T01:55:27Z","closed_at":null,"author_association":"OWNER","body":"As mentioned in issue #90, we're now at the point where we need to consider how to handle storage of manufactured items like road materials, building repair and maintenance items, robots, clothing, medicine and luxury goods.\r\n\r\nMy first thoughts are to use an enumerated type.\r\n\r\n```\r\nenum StorageItem\r\n{\r\n    ITEM_ROBOT,\r\n    ITEM_CLOTHING,\r\n    ITEM_LUXURY,\r\n    ITEM_MEDICINE,\r\n    ITEM_WHATEVER\r\n};\r\n```\r\n\r\nSomething along these lines. Then use a Warehouse interface (as opposed to a resource pool interface) to keep these tracked. I'll admit I'm not totally thrilled with this idea though.\r\n\r\nOne of the things I did with resources that Outpost 1 didn't do was simply keep a list of storage tanks, assign a max storage capacity for the storage tanks and then total them together and cap the players resources at that level.\r\n\r\nWe could do something similar with warehouses and storable items. Seeing what of each individual items is being stored in a particular warehouse seems superfluous so like resources I'm thinking it will be simpler to see how many active warehouses there are, use that as the maximum storage space available and then add storable items to a 'warehouse pool' type of structure.\r\n\r\nWe could also take a page from Outpost's book and have different items 'cost' different amounts of space. E.g., I can see storing maybe 10 robots in a Warehouse. So with 100 units of space, the Robot would 'cost' 10 units. Smaller things like luxury goods, medicine and clothing would all take up 1 unit of storage.\r\n"},"comment":{"url":"https://api.github.com/repos/ldicker83/OPHD/issues/comments/383433061","html_url":"https://github.com/ldicker83/OPHD/issues/4#issuecomment-383433061","issue_url":"https://api.github.com/repos/ldicker83/OPHD/issues/4","id":383433061,"user":{"login":"ldicker83","id":13858902,"avatar_url":"https://avatars3.githubusercontent.com/u/13858902?v=4","gravatar_id":"","url":"https://api.github.com/users/ldicker83","html_url":"https://github.com/ldicker83","followers_url":"https://api.github.com/users/ldicker83/followers","following_url":"https://api.github.com/users/ldicker83/following{/other_user}","gists_url":"https://api.github.com/users/ldicker83/gists{/gist_id}","starred_url":"https://api.github.com/users/ldicker83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldicker83/subscriptions","organizations_url":"https://api.github.com/users/ldicker83/orgs","repos_url":"https://api.github.com/users/ldicker83/repos","events_url":"https://api.github.com/users/ldicker83/events{/privacy}","received_events_url":"https://api.github.com/users/ldicker83/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T01:55:27Z","updated_at":"2018-04-23T01:55:27Z","author_association":"OWNER","body":"Okay, been awhile but I'm noting down some finalized decision making.\r\n\r\nAll products (with the exception of some robots) will be stored in individual warehouse structures. The loss of a warehouse structure through disaster or maintenance issues will result in the loss of products. A bulldozed warehouse will simply offload its products to other warehouses -- any products that don't fit will be discarded."}}
{"actor":{"display_login":"ldicker83"}}