summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #688 from zhehangd/masterRémi Verschelde2022-02-191-0/+1
|\
| * Add missing Vector2::operator Vector2i()Zhehang Ding2022-02-071-0/+1
| |
* | Add ERR_ macros variants using `String` messages.bruvzg2022-02-171-0/+6
| |
* | Fix "const" NativePtr binds.bruvzg2022-02-161-21/+21
| |
* | Add `ptr()` / `ptrw()` to the arrays, add missing `String` methods, add ↵bruvzg2022-02-1415-37/+75
|/ | | | missing `CharString` method implementations.
* Merge pull request #668 from groud/fix_extension_instance_setRémi Verschelde2022-01-061-19/+2
|\
| * Fix object_set_instance being wrongly called for built-in wrapped classesGilles Roudière2021-12-061-19/+2
| |
* | Normalized additional macros to ensure that everything works without client ↵Bradley Clemetson2021-12-182-7/+7
| | | | | | | | code needing using
* | Fix namespace to be consistent with the previous ADD functionsBradley Clemetson2021-12-121-2/+2
|/
* Make extension instances create the corresponding godot object in their ↵Gilles Roudière2021-12-034-166/+140
| | | | constructor
* Fixing compiler warnings around implicit type casting loosing precisionBastiaan Olij2021-11-2210-69/+73
|
* Add Array:make macroBastiaan Olij2021-11-021-0/+50
|
* Rename interface to gdn_interface because it's a defined keyword under windowsBastiaan Olij2021-10-289-136/+136
|
* Merge pull request #631 from Faless/ext/ref_casting_2Rémi Verschelde2021-09-281-0/+43
|\
| * Add Ref<T> binding support.Fabio Alessandrelli2021-09-281-0/+43
| | | | | | | | Added PtrToArg and GetTypeInfo adapted from Godot.
* | Add pointers support for virtual methods.Fabio Alessandrelli2021-09-271-0/+41
|/ | | | | As introduced in godot for virtual methods. Custom structs are not yet supported.
* Fully register class on register_class callBastiaan Olij2021-09-271-14/+36
|
* Implement Ref copy constructorBastiaan Olij2021-09-271-20/+39
|
* Fix encoding/decoding of null objects.Fabio Alessandrelli2021-09-271-2/+2
|
* Fix binding of function that takes Object * parameters.Fabio Alessandrelli2021-09-271-2/+2
|
* Fix creation (and godot-side deletion) of extended objects.Fabio Alessandrelli2021-09-271-9/+12
| | | | | | | | | | | | | | | Proper initialization for godot-cpp classes with memnew. Extension classes (i.e. the `GDCLASS` macro) behave differently from regular wrapped classes, and requires Godot to initialize them during object construction. This commit update the GDCLASS macro to not create/destroy the instance during the bindings callback, but during the extension callbacks. When setting the object instance, the bindings instance is set to the pointer of the extension instance so that it can later be retrieved normally via `object_get_instance_bindings`.
* Fix PtrToArg encoding for `Object *`.Fabio Alessandrelli2021-09-271-2/+2
| | | | | It didn't set the return value at all, changing the local value instead. Now instead correctly sets it as a generic pointer type from `_owner`.
* Fix some clang format thingsBastiaan Olij2021-09-271-1/+1
|
* Change constructor/destructor management of extension classesGeorge Marques2021-09-274-114/+175
| | | | | | | | | | | | | | | | | | This makes sure custom constructors are always called on extension classes. However, note that constructors should not take any parameters, since Godot doesn't support that. Parameters are ignore in memnew macro. Use memnew(MyClass()) instead of memnew(MyClass) since it now needs a value instead of a class name. This macro calls MyClass::_new() (define in GDCLASS macro) which ultimately calls Godot to create the object, ensuring that both the Godot and the extension instances are created. Non Godot classes (that don't derive godot::Object) are constructed as usual an can have parameters. memdelete is also changed for the same reason, as it needs to destroy the Godot object as well, and that automatically frees the bound extension instance.
* Add support for property groupsBastiaan Olij2021-09-272-0/+4
|
* Add in driver types and rejig code to make it easier to extendBastiaan Olij2021-09-271-9/+5
|
* Change initialization to allow custom level callbacksGeorge Marques2021-09-272-3/+42
| | | | | Now it needs a callback for each level so custom logic (like loading singletons) can be performed.
* Fix formatting of filesGeorge Marques2021-09-2715-4/+452
|
* Fix calling of native functions that return object typesGeorge Marques2021-09-271-2/+2
|
* Re-introduce build-in type code for core typesBastiaan Olij2021-09-2716-0/+3845
|
* Silence delete compile warning in memory.h/cpp on WindowsBastiaan Olij2021-09-271-0/+8
|
* Auto-bind virtual method overridesGeorge Marques2021-09-274-9/+15
|
* Fix issues with method callsGeorge Marques2021-09-273-11/+55
|
* Replace bindgins to work with extensionsGeorge Marques2021-09-2740-5301/+3267
|
* Fixup style after #563Rémi Verschelde2021-09-271-1/+0
|
* Merge pull request #563 from LinwoodCloud/masterRémi Verschelde2021-09-272-1/+2
|\
| * Stop including iostream in Variant.hpp (to produce smaller binaries)kb10002021-05-232-1/+2
| |
* | Merge pull request #588 from aaronfranke/signal-no-argRémi Verschelde2021-09-271-1/+12
|\ \
| * | Add ability to easily register signals with no argumentsAaron Franke2021-07-101-1/+12
| | |
* | | Merge pull request #601 from colugomusic/fix-string-args-constnessRémi Verschelde2021-09-271-2/+2
|\ \ \
| * | | Fix argument constness in String::begins_with, String::ends_withColugo2021-08-221-2/+2
| | | |
* | | | Merge pull request #595 from Calinou/add-license-headersRémi Verschelde2021-09-2727-0/+810
|\ \ \ \
| * | | | Add license headers to all source and header filesHugo Locurcio2021-08-0227-0/+810
| |/ / / | | | | | | | | | | | | | | | | | | | | This is consistent with the core Godot source code, and ensures the license isn't detached from its original code when individual files are distributed.
* / / / Remove extraneous Error enum values that were removed in Godot 3.0Hugo Locurcio2021-08-021-2/+0
|/ / /
* / / Fix typo in CRASH_COND leading to unexpected continuation after failMai Lavelle2021-08-011-1/+1
|/ /
* | Merge pull request #567 from DhruvMaroo/stringMarc2021-06-011-0/+2
|\ \ | | | | | | added String's move constructor and move assignment operator
| * | edited according to clang-formatDhruvMaroo2021-06-011-2/+2
| | |
| * | removed _deleted class memberDhruvMaroo2021-05-311-1/+0
| | |
| * | added class member, safety check in the destructorDhruvMaroo2021-05-311-0/+1
| | |
| * | changed spaces to tabsDhruvMaroo2021-05-301-1/+1
| | |