summaryrefslogtreecommitdiffstats
path: root/core/object/object.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotSpartan3222024-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* GDExtension: provide `free_property_list_func` with length of arrayJan Haller2024-04-271-1/+2
|
* Implement remove_user_signal()Radiant2024-04-181-0/+2
| | | | | | Co-authored-by: Timothe Bonhoure <tbonhoure@ymail.Com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* Merge pull request #89270 from Repiteo/enforce-typename-in-templatesRémi Verschelde2024-03-141-2/+2
|\ | | | | | | Enforce template syntax `typename` over `class`
| * Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-2/+2
| |
* | Add methods to get argument count of methodsA Thousand Ships2024-03-101-0/+2
|/ | | | | | | | Added to: * `Callable`s * `Object`s * `ClassDB` * `Script(Instance)`s
* Help compilers optimize Object::cast_to()Pedro J. Estébanez2024-03-061-2/+2
|
* Optimise Object's `get_argument_options`Micky2024-02-291-2/+1
|
* Merge pull request #88683 from dsnopek/runtime-classes-in-modulesRémi Verschelde2024-02-231-2/+2
|\ | | | | | | Allow registering "runtime classes" in modules (not just GDExtension)
| * Allow registering "runtime classes" in modules (not just GDExtension)David Snopek2024-02-221-2/+2
| |
* | Fix some DEFVALs to use the right typeRaul Santos2024-02-231-0/+4
|/ | | | | - Use `StringName()` in DEFVAL for StringNames. - Use `Variant()` in DEFVAL for Variants.
* Merge pull request #82554 from dsnopek/gdextension-placeholdersRémi Verschelde2024-02-201-0/+6
|\ | | | | | | Allow registering "runtime classes" from GDExtension
| * Allow registering "runtime classes"David Snopek2024-02-201-0/+6
| |
* | Add const lvalue ref to core/* container parametersMuller-Castro2024-02-141-1/+1
|/
* Include name field in MethodInfo operator ==Jovan Gerodetti2023-12-171-1/+1
|
* Use mingw-std-threads in MinGW buildsPedro J. Estébanez2023-11-181-1/+1
|
* Fill remaining global scope constant descriptionskobewi2023-11-131-4/+4
|
* Add `NOTIFICATION_PREDELETE_CLEANUP` notificationRaul Santos2023-10-201-0/+2
| | | | New notification sent after `NOTIFICATION_PREDELETE` to let Objects cleanup at the very end, it should be the last notification sent.
* expose Object::free_instance_binding to GDExtensionCed Naru2023-10-041-1/+1
|
* Merge pull request #80284 from dsnopek/gdextension-hot-reloadRémi Verschelde2023-09-261-1/+26
|\ | | | | | | Implement reloading of GDExtensions
| * Implement reloading of GDExtensionsDavid Snopek2023-09-251-1/+26
| |
* | Replace `radians` range hint with `radians_as_degrees`A Thousand Ships2023-09-251-1/+1
|/
* Add functions for non-ptr style virtual calls in GDExtensionJeff Ward2023-09-191-0/+2
| | | | | | | | | | | | This adds two functions to `GDExtensionClassCreationInfo` that allow for developers to supply a generic virtual call function along with user data to be sent to that call. If `get_virutal_call_data_func` is not null, extensions call this function to get user data to pass to a supplied `call_virtual_with_data_func`. Both must be provided is one is provided. If `get_virtual_call_data_func` is null, Godot falls back to the old `get_virtual_func` logic. Fixes #63275 Co-authored-by: David Snopek <dsnopek@gmail.com>
* Merge pull request #81515 from dsnopek/gdextension-validate-property-objectRémi Verschelde2023-09-111-0/+1
|\ | | | | | | Allow implementing `Object::_validate_property()` from GDExtension
| * Allow implementing `Object::_validate_property()` from GDExtensionDavid Snopek2023-09-101-0/+1
| |
* | Allow GDExtension to register unexposed class.Daylily-Zeleen2023-09-041-0/+1
|/
* Editor: Inspector and Signal docks improvementsDanil Alexeev2023-09-021-1/+1
|
* Fix Object::notification orderMarkus Sauermann2023-08-301-0/+3
| | | | | | | | | | | | | | Previously the `p_reversed` parameter didn't influence the order in a correct way. Also script overridden _notification functions were not called in the correct order. To fix this some `notification` functions had to add a `p_reversed` parameter. This made it necessary to adjust cpp-bindings. Co-authored-by: David Snopek <dsnopek@gmail.com>
* Add check to ensure registered classes are declaredA Thousand Ships2023-08-281-0/+3
| | | | | Checks that all classes registered to `ClassDB` have been properly declared with `GDCLASS`
* Add _get_bind_compatibility_methods to ObjectGilles Roudière2023-07-201-0/+10
| | | | Co-authored-by: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
* Fix wrapping Object's in GDExtension that aren't exposedDavid Snopek2023-06-091-11/+1
|
* Add GDExtension function to get Object class nameDavid Snopek2023-05-221-0/+14
|
* Merge pull request #77000 from reduz/make-more-base-nodes-thread-safeRémi Verschelde2023-05-161-17/+24
|\ | | | | Make more base nodes thread safe
| * Make more base nodes thread safeJuan Linietsky2023-05-151-17/+24
| | | | | | | | Ongoing work to make more of the base nodes thread safe.
* | Reorder PropertyHint enum to avoid breaking compatRaul Santos2023-05-121-1/+1
|/ | | | Also syncs the Core enum with the C# enum for the source generators.
* Merge pull request #76165 from and-rad/safe-credentialsRémi Verschelde2023-05-101-0/+1
|\ | | | | | | Store sensitive export options in dedicated credentials file
| * Store sensitive export options in dedicated credentials fileAndreas Raddau2023-05-101-0/+1
| |
* | Merge pull request #75901 from reduz/refactor-node-processingRémi Verschelde2023-05-101-0/+2
|\ \ | | | | | | | | | Refactor Node Processing to allow Scene Multithreading
| * | Refactor Node ProcessingJuan Linietsky2023-05-091-0/+2
| |/ | | | | | | | | | | | | | | | | | | * Node processing works on the concept of process groups. * A node group can be inherited, run on main thread, or a sub-thread. * Groups can be ordered. * Process priority is now present for physics. This is the first steps towards implementing https://github.com/godotengine/godot-proposals/issues/6424. No threading or thread guards exist yet in most of the scene code other than Node. That will have to be added later.
* / Rework Navigation Avoidancesmix82023-05-101-0/+1
|/ | | | Rework Navigation Avoidance.
* Merge pull request #76418 from reduz/method-bind-validated-callRémi Verschelde2023-05-081-1/+1
|\ | | | | | | Add ValidatedCall to MethodBind
| * Add ValidatedCall to MethodBindJuan Linietsky2023-04-301-1/+1
| | | | | | | | | | | | | | * This should optimize GDScript function calling _enormously_. * It also should simplify the GDScript VM considerably. NOTE: GDExtension calling performance has most likely been affected until going via ptrcall is fixed.
* | Prevent infinite loop when signal disconnection fails during object deletion.RedworkDE2023-05-051-1/+1
| |
* | Merge pull request #72421 from myaaaaaaaaa/signal-hashmapRémi Verschelde2023-04-251-2/+1
|\ \ | |/ |/| | | Store Object signals in a HashMap rather than a VMap
| * Store Object signals in a HashMap rather than a VMapmyaaaaaaaaa2023-02-251-2/+1
| |
* | Optimize Object::get_class_nameJuan Linietsky2023-04-081-15/+15
|/ | | | | * Run the static function once per class instead of one per instance. * Saves some memory in Object derived classes.
* Merge pull request #72111 from raulsntos/method-info-metadataRémi Verschelde2023-01-271-0/+10
|\ | | | | | | Add `GodotTypeInfo::Metadata` to `MethodInfo`
| * Add `GodotTypeInfo::Metadata` to `MethodInfo`Raul Santos2023-01-261-0/+10
| |
* | Add PROPERTY_USAGE_NEVER_DUPLICATE flag and use for scriptAaron Franke2023-01-241-8/+9
| | | | | | | | Co-authored-by: Yakov Borevich <j.borevich@gmail.com>