{"action":"closed","issue":{"url":"https://api.github.com/repos/ThePhD/sol2/issues/83","repository_url":"https://api.github.com/repos/ThePhD/sol2","labels_url":"https://api.github.com/repos/ThePhD/sol2/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/ThePhD/sol2/issues/83/comments","events_url":"https://api.github.com/repos/ThePhD/sol2/issues/83/events","html_url":"https://github.com/ThePhD/sol2/issues/83","id":154313707,"number":83,"title":"Registering Object Instances","user":{"login":"XBog","id":1933243,"avatar_url":"https://avatars.githubusercontent.com/u/1933243?v=3","gravatar_id":"","url":"https://api.github.com/users/XBog","html_url":"https://github.com/XBog","followers_url":"https://api.github.com/users/XBog/followers","following_url":"https://api.github.com/users/XBog/following{/other_user}","gists_url":"https://api.github.com/users/XBog/gists{/gist_id}","starred_url":"https://api.github.com/users/XBog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XBog/subscriptions","organizations_url":"https://api.github.com/users/XBog/orgs","repos_url":"https://api.github.com/users/XBog/repos","events_url":"https://api.github.com/users/XBog/events{/privacy}","received_events_url":"https://api.github.com/users/XBog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T18:43:00Z","updated_at":"2016-05-11T18:49:26Z","closed_at":"2016-05-11T18:49:26Z","body":"How can i register object Instances and call them in lua as follows:\r\n\r\nlua:\r\n`fwoosh = ship.new()\r\nlocal success = fwoosh:shoot()\r\nlocal is_dead = fwoosh:hit(20)`\r\n\r\nc++:\r\n`lua.set(\"ship\", Ship{ });`\r\nand now the members and functions?\r\n\r\nthe only method i got working, is with global function calls:\r\n`lua.set_function(\"v2\", &Ship::hit, Ship{  });`\r\nand in lua:\r\n`v2()`\r\n\r\n"}}