{"action":"created","issue":{"url":"https://api.github.com/repos/Segs/Segs/issues/371","repository_url":"https://api.github.com/repos/Segs/Segs","labels_url":"https://api.github.com/repos/Segs/Segs/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/Segs/Segs/issues/371/comments","events_url":"https://api.github.com/repos/Segs/Segs/issues/371/events","html_url":"https://github.com/Segs/Segs/issues/371","id":317312965,"node_id":"MDU6SXNzdWUzMTczMTI5NjU=","number":371,"title":"Minimap State needs to store array and serialize to database","user":{"login":"broxen","id":10159505,"node_id":"MDQ6VXNlcjEwMTU5NTA1","avatar_url":"https://avatars2.githubusercontent.com/u/10159505?v=4","gravatar_id":"","url":"https://api.github.com/users/broxen","html_url":"https://github.com/broxen","followers_url":"https://api.github.com/users/broxen/followers","following_url":"https://api.github.com/users/broxen/following{/other_user}","gists_url":"https://api.github.com/users/broxen/gists{/gist_id}","starred_url":"https://api.github.com/users/broxen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broxen/subscriptions","organizations_url":"https://api.github.com/users/broxen/orgs","repos_url":"https://api.github.com/users/broxen/repos","events_url":"https://api.github.com/users/broxen/events{/privacy}","received_events_url":"https://api.github.com/users/broxen/received_events","type":"User","site_admin":false},"labels":[{"id":28453034,"node_id":"MDU6TGFiZWwyODQ1MzAzNA==","url":"https://api.github.com/repos/Segs/Segs/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Segs/Segs/milestones/10","html_url":"https://github.com/Segs/Segs/milestone/10","labels_url":"https://api.github.com/repos/Segs/Segs/milestones/10/labels","id":3537655,"node_id":"MDk6TWlsZXN0b25lMzUzNzY1NQ==","number":10,"title":"Version 0.7: (Name TBD)","description":"Many many new features, including:\r\n\r\n- Blimps, Monorails, Cars, and Pedestrians #74 -- for now we can spawn them, and worry about making them move later. - Implemented in: #683\r\n- Additional Lua hooks\r\n- Further code cleanups and optimizations\r\n\r\nClues and Souvenirs -- Implemented in: #680\r\n- Clue List (pkt 70)\r\n- Souvenir/Clue Headers (pkt 71)\r\n- Souvenir/Clue Details (pkt 72)\r\n\r\nTailor and Multiple Costumes -- Implemented in: #658\r\n- Tailor Window (pkt 88)\r\n- Multiple Costumes and Costume Slots\r\n\r\nSupergroups -- Implemented in: #549 [In Progress]\r\n- Supergroup Offer (pkt 29)\r\n- Supergroup Create (pkt 30)\r\n- Supergroup Costume (pkt 31)\r\n- Register Supergroup (pkt 74)","creator":{"login":"broxen","id":10159505,"node_id":"MDQ6VXNlcjEwMTU5NTA1","avatar_url":"https://avatars2.githubusercontent.com/u/10159505?v=4","gravatar_id":"","url":"https://api.github.com/users/broxen","html_url":"https://github.com/broxen","followers_url":"https://api.github.com/users/broxen/followers","following_url":"https://api.github.com/users/broxen/following{/other_user}","gists_url":"https://api.github.com/users/broxen/gists{/gist_id}","starred_url":"https://api.github.com/users/broxen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broxen/subscriptions","organizations_url":"https://api.github.com/users/broxen/orgs","repos_url":"https://api.github.com/users/broxen/repos","events_url":"https://api.github.com/users/broxen/events{/privacy}","received_events_url":"https://api.github.com/users/broxen/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":103,"state":"open","created_at":"2018-07-31T22:39:52Z","updated_at":"2019-03-19T02:44:44Z","due_on":"2019-04-02T07:00:00Z","closed_at":null},"comments":3,"created_at":"2018-04-24T16:56:55Z","updated_at":"2019-03-20T05:23:16Z","closed_at":null,"author_association":"COLLABORATOR","body":"Opening your map you'll see the \"fog of war\" or shadow over the map tiles. Moving around uncovers or reveals these map tiles. We need to store the array of tiles per map, and serialize them to the database in some form. Possibly under some kind of `PlayerProgress` struct that will include contact lists, clues, badges and souvenirs in the future.\r\n\r\n`MapInstance::on_minimap_state(...)` in MapInstance is a place to start. That event has the following variables:\r\n- `uint32_t tile_idx;` - the index of the tile being uncovered\r\n\r\nSteps to complete this feature request:\r\n- [ ] Get current map_idx for use in minimap_state\r\n- [ ] Store tile idx in nested array grouped by map_idx\r\n- [ ] Store array in PlayerData (maybe new struct called PlayerProgress? Is it necessary?)\r\n- [ ] Serialize minimap_state_array to database for cross-session persistence\r\n- [ ] Determine which opcode is used to receive map state upon map transfer or login (aka, how does the client know what parts of the map are revealed?)\r\n- [ ] Serialize array from database back to array stored in PlayerData\r\n- [ ] Send updated array to client upon log in, or map transfer based upon map_idx\r\n\r\nFeel free to discuss or add additional features in the comments below. I'll add relevant info here."},"comment":{"url":"https://api.github.com/repos/Segs/Segs/issues/comments/474689135","html_url":"https://github.com/Segs/Segs/issues/371#issuecomment-474689135","issue_url":"https://api.github.com/repos/Segs/Segs/issues/371","id":474689135,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3NDY4OTEzNQ==","user":{"login":"broxen","id":10159505,"node_id":"MDQ6VXNlcjEwMTU5NTA1","avatar_url":"https://avatars2.githubusercontent.com/u/10159505?v=4","gravatar_id":"","url":"https://api.github.com/users/broxen","html_url":"https://github.com/broxen","followers_url":"https://api.github.com/users/broxen/followers","following_url":"https://api.github.com/users/broxen/following{/other_user}","gists_url":"https://api.github.com/users/broxen/gists{/gist_id}","starred_url":"https://api.github.com/users/broxen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broxen/subscriptions","organizations_url":"https://api.github.com/users/broxen/orgs","repos_url":"https://api.github.com/users/broxen/repos","events_url":"https://api.github.com/users/broxen/events{/privacy}","received_events_url":"https://api.github.com/users/broxen/received_events","type":"User","site_admin":false},"created_at":"2019-03-20T05:23:16Z","updated_at":"2019-03-20T05:23:16Z","author_association":"COLLABORATOR","body":"Seems like a good way to go."}}
{"actor":{"display_login":"broxen"}}