{"action":"closed","issue":{"url":"https://api.github.com/repos/tomekbielaszewski/SUD/issues/25","labels_url":"https://api.github.com/repos/tomekbielaszewski/SUD/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/tomekbielaszewski/SUD/issues/25/comments","events_url":"https://api.github.com/repos/tomekbielaszewski/SUD/issues/25/events","html_url":"https://github.com/tomekbielaszewski/SUD/issues/25","id":99720443,"number":25,"title":"Każda lokacja ma definiować skrypt na każdy z 5 eventów","user":{"login":"tomekbielaszewski","id":2652591,"avatar_url":"https://avatars.githubusercontent.com/u/2652591?v=3","gravatar_id":"","url":"https://api.github.com/users/tomekbielaszewski","html_url":"https://github.com/tomekbielaszewski","followers_url":"https://api.github.com/users/tomekbielaszewski/followers","following_url":"https://api.github.com/users/tomekbielaszewski/following{/other_user}","gists_url":"https://api.github.com/users/tomekbielaszewski/gists{/gist_id}","starred_url":"https://api.github.com/users/tomekbielaszewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomekbielaszewski/subscriptions","organizations_url":"https://api.github.com/users/tomekbielaszewski/orgs","repos_url":"https://api.github.com/users/tomekbielaszewski/repos","events_url":"https://api.github.com/users/tomekbielaszewski/events{/privacy}","received_events_url":"https://api.github.com/users/tomekbielaszewski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomekbielaszewski/SUD/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"tomekbielaszewski","id":2652591,"avatar_url":"https://avatars.githubusercontent.com/u/2652591?v=3","gravatar_id":"","url":"https://api.github.com/users/tomekbielaszewski","html_url":"https://github.com/tomekbielaszewski","followers_url":"https://api.github.com/users/tomekbielaszewski/followers","following_url":"https://api.github.com/users/tomekbielaszewski/following{/other_user}","gists_url":"https://api.github.com/users/tomekbielaszewski/gists{/gist_id}","starred_url":"https://api.github.com/users/tomekbielaszewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomekbielaszewski/subscriptions","organizations_url":"https://api.github.com/users/tomekbielaszewski/orgs","repos_url":"https://api.github.com/users/tomekbielaszewski/repos","events_url":"https://api.github.com/users/tomekbielaszewski/events{/privacy}","received_events_url":"https://api.github.com/users/tomekbielaszewski/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/tomekbielaszewski/SUD/milestones/3","html_url":"https://github.com/tomekbielaszewski/SUD/milestones/Prototyp%20skryptowania%20lokacji","labels_url":"https://api.github.com/repos/tomekbielaszewski/SUD/milestones/3/labels","id":1087285,"number":3,"title":"Prototyp skryptowania lokacji","description":"Stworzyć lokacje, które są dostępne tylko pod pewnymi warunkami:\r\n- postać posiada klucz\r\n- postać wykonuje questa (ustawiony jest pewien atrybut)\r\n- zablokowanie lokacji jeśli postać posiada jakiś przedmiot (nie można wejść do karczmy z bronią itp)\r\nWstępna propozycja: entranceScript, leavingScript","creator":{"login":"tomekbielaszewski","id":2652591,"avatar_url":"https://avatars.githubusercontent.com/u/2652591?v=3","gravatar_id":"","url":"https://api.github.com/users/tomekbielaszewski","html_url":"https://github.com/tomekbielaszewski","followers_url":"https://api.github.com/users/tomekbielaszewski/followers","following_url":"https://api.github.com/users/tomekbielaszewski/following{/other_user}","gists_url":"https://api.github.com/users/tomekbielaszewski/gists{/gist_id}","starred_url":"https://api.github.com/users/tomekbielaszewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomekbielaszewski/subscriptions","organizations_url":"https://api.github.com/users/tomekbielaszewski/orgs","repos_url":"https://api.github.com/users/tomekbielaszewski/repos","events_url":"https://api.github.com/users/tomekbielaszewski/events{/privacy}","received_events_url":"https://api.github.com/users/tomekbielaszewski/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2015-04-28T11:50:45Z","updated_at":"2015-08-16T19:43:02Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-07T19:58:33Z","updated_at":"2015-08-16T19:43:02Z","closed_at":"2015-08-16T19:43:02Z","body":"Każda lokacja ma definiować skrypt na każdy z 4 eventów:\r\n- beforeEnter - sprawdza czy można wejśc na lokację (true/false). Odpalany przed ustawieniem lokacji jako currentLocation\r\n- onEnter - odpalany w momencie ustawienia danej lokacji jako current\r\n- onShow - odpalany zawsze po pokazaniu opisu lokacji\r\n- beforeLeave - odpalany zaraz przed opuszczeniem lokacji. Sprawdza czy można zejść z lokacji (true/false)\r\n- onLeave - odpalany po zejściu z lokacji"}}