{"action":"created","issue":{"url":"https://api.github.com/repos/tjubutsi/gwa2/issues/7","repository_url":"https://api.github.com/repos/tjubutsi/gwa2","labels_url":"https://api.github.com/repos/tjubutsi/gwa2/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/tjubutsi/gwa2/issues/7/comments","events_url":"https://api.github.com/repos/tjubutsi/gwa2/issues/7/events","html_url":"https://github.com/tjubutsi/gwa2/pull/7","id":325361336,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg5NzE0Mjgx","number":7,"title":"Pointer based functions, tidying up code, distance functions tidied up","user":{"login":"3vcloud","id":10796356,"node_id":"MDQ6VXNlcjEwNzk2MzU2","avatar_url":"https://avatars0.githubusercontent.com/u/10796356?v=4","gravatar_id":"","url":"https://api.github.com/users/3vcloud","html_url":"https://github.com/3vcloud","followers_url":"https://api.github.com/users/3vcloud/followers","following_url":"https://api.github.com/users/3vcloud/following{/other_user}","gists_url":"https://api.github.com/users/3vcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/3vcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3vcloud/subscriptions","organizations_url":"https://api.github.com/users/3vcloud/orgs","repos_url":"https://api.github.com/users/3vcloud/repos","events_url":"https://api.github.com/users/3vcloud/events{/privacy}","received_events_url":"https://api.github.com/users/3vcloud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-05-22T16:00:47Z","updated_at":"2018-06-08T11:56:37Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/tjubutsi/gwa2/pulls/7","html_url":"https://github.com/tjubutsi/gwa2/pull/7","diff_url":"https://github.com/tjubutsi/gwa2/pull/7.diff","patch_url":"https://github.com/tjubutsi/gwa2/pull/7.patch"},"body":"Modified the Agent and Agent Info sections to use pointers internally to figure a lot of stuff out - avoids having to load whole structs in memory for small loops or tasks.\r\n\r\nLocation functions were using copy/paste lumps of code to figure stuff like Pseudo location out - I've moved these out to refer to either ComputeDistance or ComputePseudoDistance. Easier to read and update if needed.\r\n\r\nMoved away from Directly calling DllStructGetData directly to cater for pointers aswell e.g. GetNearestAgentToCoords now uses GetAgentXY to fetch location info instead of DllStructGetData($struct,'X') and DllStructGetData($struct,'Y') respectively.\r\n\r\nOriginal Agent functions have been modified to accept Pointer based agent arguments instead of just Agent ID or DllStruct objects.\r\n\r\nWill be moving on to Items when I have more time.\r\n\r\nP.S. Bug with GWA2 Initialize code fixed - it hangs if Initialize(ProcessExists(\"gw.exe\")) is called without the process existing."},"comment":{"url":"https://api.github.com/repos/tjubutsi/gwa2/issues/comments/395738816","html_url":"https://github.com/tjubutsi/gwa2/pull/7#issuecomment-395738816","issue_url":"https://api.github.com/repos/tjubutsi/gwa2/issues/7","id":395738816,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTczODgxNg==","user":{"login":"tjubutsi","id":9071443,"node_id":"MDQ6VXNlcjkwNzE0NDM=","avatar_url":"https://avatars0.githubusercontent.com/u/9071443?v=4","gravatar_id":"","url":"https://api.github.com/users/tjubutsi","html_url":"https://github.com/tjubutsi","followers_url":"https://api.github.com/users/tjubutsi/followers","following_url":"https://api.github.com/users/tjubutsi/following{/other_user}","gists_url":"https://api.github.com/users/tjubutsi/gists{/gist_id}","starred_url":"https://api.github.com/users/tjubutsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjubutsi/subscriptions","organizations_url":"https://api.github.com/users/tjubutsi/orgs","repos_url":"https://api.github.com/users/tjubutsi/repos","events_url":"https://api.github.com/users/tjubutsi/events{/privacy}","received_events_url":"https://api.github.com/users/tjubutsi/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T11:56:37Z","updated_at":"2018-06-08T11:56:37Z","author_association":"OWNER","body":"But why bother even waiting? There's pretty much no use for that."}}
{"actor":{"display_login":"tjubutsi"}}