{"action":"closed","issue":{"url":"https://api.github.com/repos/RealismusModding/FS17_seasons/issues/40","repository_url":"https://api.github.com/repos/RealismusModding/FS17_seasons","labels_url":"https://api.github.com/repos/RealismusModding/FS17_seasons/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/RealismusModding/FS17_seasons/issues/40/comments","events_url":"https://api.github.com/repos/RealismusModding/FS17_seasons/issues/40/events","html_url":"https://github.com/RealismusModding/FS17_seasons/issues/40","id":190549701,"number":40,"title":"[WM] Weather Manager initial implementation","user":{"login":"theSeb1979","id":23258759,"avatar_url":"https://avatars.githubusercontent.com/u/23258759?v=3","gravatar_id":"","url":"https://api.github.com/users/theSeb1979","html_url":"https://github.com/theSeb1979","followers_url":"https://api.github.com/users/theSeb1979/followers","following_url":"https://api.github.com/users/theSeb1979/following{/other_user}","gists_url":"https://api.github.com/users/theSeb1979/gists{/gist_id}","starred_url":"https://api.github.com/users/theSeb1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theSeb1979/subscriptions","organizations_url":"https://api.github.com/users/theSeb1979/orgs","repos_url":"https://api.github.com/users/theSeb1979/repos","events_url":"https://api.github.com/users/theSeb1979/events{/privacy}","received_events_url":"https://api.github.com/users/theSeb1979/received_events","type":"User","site_admin":false},"labels":[{"id":478294801,"url":"https://api.github.com/repos/RealismusModding/FS17_seasons/labels/new%20feature","name":"new feature","color":"006b75","default":false},{"id":478293874,"url":"https://api.github.com/repos/RealismusModding/FS17_seasons/labels/p_high","name":"p_high","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"reallogger","id":15114342,"avatar_url":"https://avatars.githubusercontent.com/u/15114342?v=3","gravatar_id":"","url":"https://api.github.com/users/reallogger","html_url":"https://github.com/reallogger","followers_url":"https://api.github.com/users/reallogger/followers","following_url":"https://api.github.com/users/reallogger/following{/other_user}","gists_url":"https://api.github.com/users/reallogger/gists{/gist_id}","starred_url":"https://api.github.com/users/reallogger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reallogger/subscriptions","organizations_url":"https://api.github.com/users/reallogger/orgs","repos_url":"https://api.github.com/users/reallogger/repos","events_url":"https://api.github.com/users/reallogger/events{/privacy}","received_events_url":"https://api.github.com/users/reallogger/received_events","type":"User","site_admin":false},"assignees":[{"login":"reallogger","id":15114342,"avatar_url":"https://avatars.githubusercontent.com/u/15114342?v=3","gravatar_id":"","url":"https://api.github.com/users/reallogger","html_url":"https://github.com/reallogger","followers_url":"https://api.github.com/users/reallogger/followers","following_url":"https://api.github.com/users/reallogger/following{/other_user}","gists_url":"https://api.github.com/users/reallogger/gists{/gist_id}","starred_url":"https://api.github.com/users/reallogger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reallogger/subscriptions","organizations_url":"https://api.github.com/users/reallogger/orgs","repos_url":"https://api.github.com/users/reallogger/repos","events_url":"https://api.github.com/users/reallogger/events{/privacy}","received_events_url":"https://api.github.com/users/reallogger/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RealismusModding/FS17_seasons/milestones/7","html_url":"https://github.com/RealismusModding/FS17_seasons/milestone/7","labels_url":"https://api.github.com/repos/RealismusModding/FS17_seasons/milestones/7/labels","id":2124324,"number":7,"title":"WM - WeatherManager class","description":"Manipulate temperatures and weather conditions based on season","creator":{"login":"theSeb1979","id":23258759,"avatar_url":"https://avatars.githubusercontent.com/u/23258759?v=3","gravatar_id":"","url":"https://api.github.com/users/theSeb1979","html_url":"https://github.com/theSeb1979","followers_url":"https://api.github.com/users/theSeb1979/followers","following_url":"https://api.github.com/users/theSeb1979/following{/other_user}","gists_url":"https://api.github.com/users/theSeb1979/gists{/gist_id}","starred_url":"https://api.github.com/users/theSeb1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theSeb1979/subscriptions","organizations_url":"https://api.github.com/users/theSeb1979/orgs","repos_url":"https://api.github.com/users/theSeb1979/repos","events_url":"https://api.github.com/users/theSeb1979/events{/privacy}","received_events_url":"https://api.github.com/users/theSeb1979/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-11-09T11:02:00Z","updated_at":"2016-12-13T23:37:07Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-11-20T10:05:44Z","updated_at":"2016-12-13T23:37:07Z","closed_at":"2016-12-13T23:37:07Z","body":"What I see is in the weatherManager class we will have a day changed listener\r\n\r\ng_currentMission.environment:addDayChangeListener(ssWeatherManager)\r\nthen we implement function ssWeatherManager:dayChanged()\r\nin this function we check the day and get the season\r\nand manipulate upcoming temperatures appropriately\r\nin the deleteMap function we can save the weather state\r\nin the loadMap function we create the initial weather appropriate to the season, if it’s a new save game that does not have our manipulated weather (edited)\r\notherwise we load our mainpulated weather into g_currentMission.weatherTemperatures tables and g_currentMission.environment.rains\r\ndayChanged will be called automatically by the game because it is a call back function to an event that is triggered by the game engine\r\nwhenever the day changes\r\n\r\n\r\ninitially going to just use tables of temperatures appropriate for the season and use them randomly. You guys can then tell me how to implement your special temperatures \r\n\r\nBut I want to create the initial implementation and test it because I am not entirely certain how the engine regenerates the weather so need to play around with it\r\n\r\nit seems to add stuff to the weather tables at the end of each day"}}
{"actor":{"display_login":"reallogger"}}