Skip to content
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

Added native binding for dictionary duplication #28738

Merged
merged 1 commit into from
May 23, 2019
Merged

Added native binding for dictionary duplication #28738

merged 1 commit into from
May 23, 2019

Conversation

2shady4u
Copy link
Contributor

@2shady4u 2shady4u commented May 7, 2019

There was no native binding for Dictionary duplication.
I took the native binding for array duplication (from modules/gdnative/gdnative/array.cpp)
and modified it for dictionaries.

Was this oversight deliberate? or didn't anyone need to duplicate their dictionaries in native scripts until now?

Copy link
Contributor

@karroffel karroffel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine but the function won't be able to be called from any bindings without an entry in the gdnative_api.json

@2shady4u
Copy link
Contributor Author

@karroffel I have implemented the requested changes and added entries for the duplicate function in both gdnative_api.json and dictionary.h

Should hopefully be acceptable now.... Unless I've forgotten something else?

modules/gdnative/gdnative_api.json Outdated Show resolved Hide resolved
Copy link
Contributor

@karroffel karroffel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups, I meant this. 😅

Added entry in gdnative_api.json


Added function to header as well


Fixed versioning
Copy link
Contributor

@karroffel karroffel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good now :)

@akien-mga akien-mga merged commit 1deb412 into godotengine:master May 23, 2019
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants