{"action":"closed","number":184,"pull_request":{"url":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/184","id":41227097,"html_url":"https://github.com/cocos2d/bindings-generator/pull/184","diff_url":"https://github.com/cocos2d/bindings-generator/pull/184.diff","patch_url":"https://github.com/cocos2d/bindings-generator/pull/184.patch","issue_url":"https://api.github.com/repos/cocos2d/bindings-generator/issues/184","number":184,"state":"closed","locked":false,"title":"Add auto bindings for public members","user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"body":"Original idea and implementation from https://github.com/cocos2d/bindings-generator/pull/139 of @samuele3hu \r\n\r\nBased on his implementation, I added `field` to ini configuration to permit adding fields that need to be bound. By default no public field is bound to ensure compatibility with the current cocos2d code base, because there are already some public fields bound manually. In the future, they should be totally replaced by auto bindings, and `field` should be removed from the configuration.\r\n\r\n@dualface I have added the original implementation of @samuele3hu for Lua bindings.\r\nYou can improve it and in the future, auto binding should be able to bind lua public members.\r\n\r\nThank you @samuele3hu !","created_at":"2015-07-30T12:17:02Z","updated_at":"2015-07-30T12:18:40Z","closed_at":"2015-07-30T12:18:40Z","merged_at":"2015-07-30T12:18:40Z","merge_commit_sha":"4d7f2c33ec8019f2cb895715962dd2b03ee730e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/184/commits","review_comments_url":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/184/comments","review_comment_url":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos2d/bindings-generator/issues/184/comments","statuses_url":"https://api.github.com/repos/cocos2d/bindings-generator/statuses/8b57a68e79a87bdac6deab6e3a1e66566485e10a","head":{"label":"pandamicro:v3","ref":"v3","sha":"8b57a68e79a87bdac6deab6e3a1e66566485e10a","user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"repo":{"id":15757839,"name":"bindings-generator","full_name":"pandamicro/bindings-generator","owner":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pandamicro/bindings-generator","description":"JSBindings generator for C++","fork":true,"url":"https://api.github.com/repos/pandamicro/bindings-generator","forks_url":"https://api.github.com/repos/pandamicro/bindings-generator/forks","keys_url":"https://api.github.com/repos/pandamicro/bindings-generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pandamicro/bindings-generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pandamicro/bindings-generator/teams","hooks_url":"https://api.github.com/repos/pandamicro/bindings-generator/hooks","issue_events_url":"https://api.github.com/repos/pandamicro/bindings-generator/issues/events{/number}","events_url":"https://api.github.com/repos/pandamicro/bindings-generator/events","assignees_url":"https://api.github.com/repos/pandamicro/bindings-generator/assignees{/user}","branches_url":"https://api.github.com/repos/pandamicro/bindings-generator/branches{/branch}","tags_url":"https://api.github.com/repos/pandamicro/bindings-generator/tags","blobs_url":"https://api.github.com/repos/pandamicro/bindings-generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pandamicro/bindings-generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pandamicro/bindings-generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/pandamicro/bindings-generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pandamicro/bindings-generator/statuses/{sha}","languages_url":"https://api.github.com/repos/pandamicro/bindings-generator/languages","stargazers_url":"https://api.github.com/repos/pandamicro/bindings-generator/stargazers","contributors_url":"https://api.github.com/repos/pandamicro/bindings-generator/contributors","subscribers_url":"https://api.github.com/repos/pandamicro/bindings-generator/subscribers","subscription_url":"https://api.github.com/repos/pandamicro/bindings-generator/subscription","commits_url":"https://api.github.com/repos/pandamicro/bindings-generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/pandamicro/bindings-generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/pandamicro/bindings-generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/pandamicro/bindings-generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/pandamicro/bindings-generator/contents/{+path}","compare_url":"https://api.github.com/repos/pandamicro/bindings-generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pandamicro/bindings-generator/merges","archive_url":"https://api.github.com/repos/pandamicro/bindings-generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pandamicro/bindings-generator/downloads","issues_url":"https://api.github.com/repos/pandamicro/bindings-generator/issues{/number}","pulls_url":"https://api.github.com/repos/pandamicro/bindings-generator/pulls{/number}","milestones_url":"https://api.github.com/repos/pandamicro/bindings-generator/milestones{/number}","notifications_url":"https://api.github.com/repos/pandamicro/bindings-generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pandamicro/bindings-generator/labels{/name}","releases_url":"https://api.github.com/repos/pandamicro/bindings-generator/releases{/id}","created_at":"2014-01-09T05:46:08Z","updated_at":"2014-05-20T08:43:45Z","pushed_at":"2015-07-30T12:15:58Z","git_url":"git://github.com/pandamicro/bindings-generator.git","ssh_url":"git@github.com:pandamicro/bindings-generator.git","clone_url":"https://github.com/pandamicro/bindings-generator.git","svn_url":"https://github.com/pandamicro/bindings-generator","homepage":null,"size":16569,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cocos2d:v3","ref":"v3","sha":"3edab5be37cf2dd8aef00cf20a153c8367fbb87d","user":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"repo":{"id":9205850,"name":"bindings-generator","full_name":"cocos2d/bindings-generator","owner":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cocos2d/bindings-generator","description":"JSBindings generator for C++","fork":false,"url":"https://api.github.com/repos/cocos2d/bindings-generator","forks_url":"https://api.github.com/repos/cocos2d/bindings-generator/forks","keys_url":"https://api.github.com/repos/cocos2d/bindings-generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos2d/bindings-generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos2d/bindings-generator/teams","hooks_url":"https://api.github.com/repos/cocos2d/bindings-generator/hooks","issue_events_url":"https://api.github.com/repos/cocos2d/bindings-generator/issues/events{/number}","events_url":"https://api.github.com/repos/cocos2d/bindings-generator/events","assignees_url":"https://api.github.com/repos/cocos2d/bindings-generator/assignees{/user}","branches_url":"https://api.github.com/repos/cocos2d/bindings-generator/branches{/branch}","tags_url":"https://api.github.com/repos/cocos2d/bindings-generator/tags","blobs_url":"https://api.github.com/repos/cocos2d/bindings-generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos2d/bindings-generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos2d/bindings-generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos2d/bindings-generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos2d/bindings-generator/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos2d/bindings-generator/languages","stargazers_url":"https://api.github.com/repos/cocos2d/bindings-generator/stargazers","contributors_url":"https://api.github.com/repos/cocos2d/bindings-generator/contributors","subscribers_url":"https://api.github.com/repos/cocos2d/bindings-generator/subscribers","subscription_url":"https://api.github.com/repos/cocos2d/bindings-generator/subscription","commits_url":"https://api.github.com/repos/cocos2d/bindings-generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos2d/bindings-generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos2d/bindings-generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos2d/bindings-generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos2d/bindings-generator/contents/{+path}","compare_url":"https://api.github.com/repos/cocos2d/bindings-generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos2d/bindings-generator/merges","archive_url":"https://api.github.com/repos/cocos2d/bindings-generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos2d/bindings-generator/downloads","issues_url":"https://api.github.com/repos/cocos2d/bindings-generator/issues{/number}","pulls_url":"https://api.github.com/repos/cocos2d/bindings-generator/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos2d/bindings-generator/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos2d/bindings-generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos2d/bindings-generator/labels{/name}","releases_url":"https://api.github.com/repos/cocos2d/bindings-generator/releases{/id}","created_at":"2013-04-03T21:55:26Z","updated_at":"2015-07-24T08:59:19Z","pushed_at":"2015-07-30T12:18:40Z","git_url":"git://github.com/cocos2d/bindings-generator.git","ssh_url":"git@github.com:cocos2d/bindings-generator.git","clone_url":"https://github.com/cocos2d/bindings-generator.git","svn_url":"https://github.com/cocos2d/bindings-generator","homepage":null,"size":17408,"stargazers_count":70,"watchers_count":70,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":13,"forks":74,"open_issues":13,"watchers":70,"default_branch":"v4-develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/184"},"html":{"href":"https://github.com/cocos2d/bindings-generator/pull/184"},"issue":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/issues/184"},"comments":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/cocos2d/bindings-generator/statuses/8b57a68e79a87bdac6deab6e3a1e66566485e10a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":250,"deletions":2,"changed_files":6}}