summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
2022-06-11Added documentation comments to the .NET libraryJoshua Quinones
Comments have been added for the following: modules/mono/glue/GodotSharp/GodotSharp/Core/GodotTaskScheduler.cs modules/mono/glue/GodotSharp/GodotSharp/Core/GodotSynchronizationContext.cs modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/AssemblyHasScriptsAttribute.cs modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/DisableGodotGeneratorsAttribute.cs modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/ExportAttribute.cs modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/GodotMethodAttribute.cs modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/ScriptPathAttribute.cs
2022-06-03Merge pull request #57824 from raulsntos/csharp-typed-arraysRémi Verschelde
2022-06-03Support explicit values in flag properties, add C# flags supportRaul Santos
- Add support for explicit values in properties using `PROPERTY_HINT_FLAGS` that works the same way it does for enums. - Fix enums and flags in VisualScriptEditor (it wasn't considering the explicit value). - Use `PROPERTY_HINT_FLAGS` for C# enums with the FlagsAttribute instead of `PROPERTY_HINT_ENUM`.
2022-06-03Generate typed array parameters in C# bindingsRaul Santos
Adds support for generating C# bindings that use the generic `Array<T>` type instead of the non-generic `Array` type when the registered ClassDB method specifies the array element type.
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Merge pull request #60956 from macjuul/hide-mono-cmd-promptRémi Verschelde
Prevent blank command prompts from spawning when building a mono project
2022-05-12Fix blank command prompts spawningJulian Mills
prevent certain mono actions from displaying empty command prompts.
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-05-10[macOS / iOS] Fix text-to-speech build with older macOS / iOS SDK.bruvzg
Add __has_include check for AVFAudio include. Add some explicit casts to avoid conflicts. Change all `include`s to `import`s for consistency.
2022-05-06Changed signals of ItemListVitika9
2022-05-05Core: Rename math 'phi' arguments to 'angle'Rémi Verschelde
2022-05-04Merge pull request #60723 from reduz/refactor-module-initializationRémi Verschelde
2022-05-04Refactor module initializationreduz
* Changed to use the same stages as extensions. * Makes the initialization more coherent, helping solve problems due to lack of stages. * Makes it easier to port between module and extension. * removed the DRIVER initialization level (no longer needed).
2022-05-03Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde
Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-04-29Rename Basis "elements" to "rows"Aaron Franke
2022-04-29Rename Transform2D "elements" to "columns"Aaron Franke
2022-04-12Narrow FileAccess scope to prevent deadlocks.bruvzg
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-04Zero initialize all pointer class and struct membersRémi Verschelde
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
2022-03-31Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
2022-03-28String: Remove TTR and DTR defines in non-tools buildRémi Verschelde
This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
2022-03-28Refactor GDScript/C# script templates logic to be editor-onlyRémi Verschelde
Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this.
2022-03-28Merge pull request #59553 from reduz/script-extension-supportRémi Verschelde
2022-03-28Make script templates follow the GDScript style guideMichael Alexsander
2022-03-27Add GDExtension support to Scriptreduz
* Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
2022-03-22Support static methods in C# bindings generatorRaul Santos
2022-03-18Ignore PhysicsServer3DExtension class in C#Raul Santos
PhysicsServer3DExtension inherits from PhysicsServer3D which is a singleton class, since singleton classes are generated as static in C# it would generate invalid C# so for now we'll be ignoring PhysicsServer3DExtension.
2022-03-16Implement GDExtension export plugin.bruvzg
2022-03-12Fix Slerp C# docs and add test cases for vectors in the same directionAaron Franke
2022-03-11Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde
`DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-03-09Remove VARIANT_ARG* macrosreduz
* Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-03-09Fix Autoload capitalization inconsistencyHaoyu Qiu
2022-03-08Rename Control's Rect properties to exclude rect_ partMarcel Admiraal
2022-03-07Merge pull request #58847 from KoBeWi/editor_settings_messRémi Verschelde
2022-03-06Remove duplicate editor settings definitionskobewi
2022-03-06Implement `Deconstruct` methods for C# vectorsBerke Kocaoğlu
See https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct#user-defined-types
2022-03-03Refactor `bbcode_to_xml` into multiple specific methodsRaul Santos
The specific `_append_xml_*` methods implement the logic that generates the proper XML documentation for the given BBCode tag and target and appends it to the output.
2022-03-03Find inherited members in C# documentation generatorRaul Santos
2022-03-03Add theme_item support to C# documentation generatorRaul Santos
2022-03-03Fix checking for `@GlobalScope` in C# documentation generatorRaul Santos
2022-03-03Check for missing methods/members in C# documentation generatorRaul Santos
- Outputs errors for missing members or methods when generating the C# documentation. - Hardcodes a special case for the `_init` method, in C# we'll reference the constructor. - Ignores properties with slashes (since they are not declared in C# and can't be referenced in the documentation).
2022-03-03Fix references to global constants in C# documentation generatorRaul Santos
Tries to find the referenced constants in the GlobalScope if not found in the target class or if no class is specified.
2022-02-22Rename motion_velocity to velocityChris Bradfield
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-15Editor: Cleanup some includes dependenciesRémi Verschelde
Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
2022-02-15Add an XML schema for documentationHugo Locurcio
This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
2022-02-13Merge pull request #57954 from TokageItLab/refactor-cubic-interpolateRémi Verschelde
Implement `cubic_interpolate()` as MathFunc for refactoring
2022-02-12Use EditorFileDialog instead of FileDialog in the project managerHendrik Brucker