summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
2022-06-24Merge pull request #59918 from ↵Rémi Verschelde
piiertho/enhancement/rename-controll-minimum_size-to-custom_minimum_size
2022-06-23enhancement: rename exposed property Control::minimum_size to ↵Pierre-Thomas Meisels
Control::custom_minimum_size
2022-06-23Mono: Update Newtonsoft.Json to 13.0.1Rémi Verschelde
See https://github.com/advisories/GHSA-5crp-9r3c-p9vr
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-17Merge pull request #61991 from bruvzg/property_shortcutRémi Verschelde
Make enum/constant binds 64-bit.
2022-06-17Merge pull request #62069 from iamjsk10/masterRémi Verschelde
Typo: Changed "forech" into "foreach" in string_utils.cpp
2022-06-17Make enum/constant binds 64-bit.bruvzg
2022-06-17Mono: Fix typo to `foreach` C# keywordiamjsk10
2022-06-16Fix EditorScenePostImport templates for C#Raul Santos
2022-06-16Fix Lerp documentation and implement RangeLerpPaul Joannon
2022-06-15Merge pull request #61486 from jtnicholl/import_script_templatesRémi Verschelde
Add script templates for EditorScenePostImport
2022-06-15Add script templates for EditorScenePostImportJonathan Nicholl
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