{"action":"opened","issue":{"url":"https://api.github.com/repos/LemADEC/WarpDrive/issues/64","labels_url":"https://api.github.com/repos/LemADEC/WarpDrive/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/LemADEC/WarpDrive/issues/64/comments","events_url":"https://api.github.com/repos/LemADEC/WarpDrive/issues/64/events","html_url":"https://github.com/LemADEC/WarpDrive/issues/64","id":101293217,"number":64,"title":"True state machines and impact on LUA API","user":{"login":"LemADEC","id":4776032,"avatar_url":"https://avatars.githubusercontent.com/u/4776032?v=3","gravatar_id":"","url":"https://api.github.com/users/LemADEC","html_url":"https://github.com/LemADEC","followers_url":"https://api.github.com/users/LemADEC/followers","following_url":"https://api.github.com/users/LemADEC/following{/other_user}","gists_url":"https://api.github.com/users/LemADEC/gists{/gist_id}","starred_url":"https://api.github.com/users/LemADEC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LemADEC/subscriptions","organizations_url":"https://api.github.com/users/LemADEC/orgs","repos_url":"https://api.github.com/users/LemADEC/repos","events_url":"https://api.github.com/users/LemADEC/events{/privacy}","received_events_url":"https://api.github.com/users/LemADEC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T19:44:56Z","updated_at":"2015-08-16T19:44:56Z","closed_at":null,"body":"Machine blocks should be implemented as state machine.\r\nTo this effect, the LUA API would need to be updated too:\r\n* radar.getResult() should return more values: success, type, name, relativeX, relativeY, relativeZ\r\n* radar.state() should return if a scan is ongoing: isActive\r\n* miner.mine(), miner.stop() and miner.quarry() should be replaced with enable()\r\n* farm.start() and farm.stop() should be replaced with enable()\r\n* farm and miner.state() should return a boolean first: isActive, etc.\r\n"}}