-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squirrel: Fix inaccessible class member variables, improvements #3031
Squirrel: Fix inaccessible class member variables, improvements #3031
Conversation
Fixes a bug in simplesquirrel, which caused exposed class member variables to be inaccessible from Squirrel. Additionally, simplesquirrel now supports custom getters and setters for class member variables. Because of this, more `get_` and `set_` functions of objects now have an alternative variable, which can also be used. All `get_` and `set_` functions which were made obsolete by member variables are now un-deprecated, because of a noticeable preference amongst scripters to keep both options available for convenience.
I happen to notice that |
It just does that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this. It works. This is actually pretty cool.
[ci skip]
[ci skip]
[ci skip]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine, but how would I test this PR?
Try using some variables that use getters and setters. Make sure variables as a whole work properly. |
Fixes a bug in simplesquirrel, which caused exposed class member variables to be inaccessible from Squirrel.
Additionally:
get_
andset_
functions of objects now have an alternative variable, which can also be used.get_
andset_
functions which were made obsolete by member variables are now un-deprecated, because of a noticeable preference amongst scripters to keep both options available for convenience.