Skip to content

Add auto bindings for public members#184

Merged
pandamicro merged 2 commits intococos2d:v3from
pandamicro:v3
Jul 30, 2015
Merged

Add auto bindings for public members#184
pandamicro merged 2 commits intococos2d:v3from
pandamicro:v3

Conversation

@pandamicro
Copy link
Copy Markdown
Contributor

Original idea and implementation from #139 of @samuele3hu

Based 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.

@dualface I have added the original implementation of @samuele3hu for Lua bindings.
You can improve it and in the future, auto binding should be able to bind lua public members.

Thank you @samuele3hu !

@pandamicro
Copy link
Copy Markdown
Contributor Author

Task for cocos2d/cocos2d-x#9958

pandamicro added a commit that referenced this pull request Jul 30, 2015
Add auto bindings for public members
@pandamicro pandamicro merged commit 067ef5d into cocos2d:v3 Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant