1
0
Fork 0
Commit Graph

2533 Commits

Author SHA1 Message Date
Thaddeus Crews 7738626d25
Merge pull request #107800 from Joy-less/add-ROS-overload-for-Callable.Call
Add `ReadOnlySpan<Variant>` overload for `Callable.Call`
2025-09-20 13:41:36 -05:00
Thaddeus Crews 9a76f55518
[C#] Add documentation for Interfaces/Attributes 2025-09-19 11:57:42 -05:00
Thaddeus Crews 8b4b93a82e
Merge pull request #105950 from Joy-less/Fix-array-span-constructors
Fix array span constructors in C#
2025-09-17 11:34:19 -05:00
Thaddeus Crews 38d80598f5
Merge pull request #108121 from Repiteo/core/disabled-class-rework
Core: Handle disabled class detection in `ClassDB`
2025-09-17 11:34:16 -05:00
Thaddeus Crews f73d3db412
Merge pull request #108527 from raulsntos/dotnet/enum-variant-conversion
[.NET] Fix enum from/to Variant conversion
2025-09-16 11:44:50 -05:00
Thaddeus Crews c2141e0aa5
Bump version to 4.6-dev 2025-09-15 15:50:22 -05:00
Raul Santos f0c9253bec
[.NET] Require `net9.0` for Android exports
To ensure Android exports are compatible with the new Play Store
requirement that all `.so` libraries included are aligned to 16k,
we now require C# projects to target `net9.0` which uses the
correct alignment (as opposed to the current one of 4k).

The thirdparty jar library has also been updated to the one from
the 9.0.4 runtime package so it's compatible with non-gradle
builds targeting `net9.0`.

Non-android projects are not affect, the minimum TFM is still
`net8.0`.
2025-09-05 04:14:27 +02:00
Thaddeus Crews 555e7ad073
Core: Handle disabled class detection in ClassDB 2025-08-26 09:31:14 -05:00
Thaddeus Crews 37a48c89f9
Merge pull request #106744 from L2750558108/fix-@-error-in-c#
Fix source generator exceptions appearing when use "@+internal keyword" as type or namespace name in C# script
2025-08-24 11:04:31 -05:00
Talkashie bc7e68dfd1 Typos 2025-08-19 18:32:59 -05:00
2750558108 f192430921 Fix source generator exceptions appearing when use "@+internal keyword" as type or namespace name in C# script 2025-08-09 13:25:54 +08:00
Raul Santos dd662f9c6a
[.NET] Fix `Quaternion(Vector3, Vector3)` constructor when vectors are the same. 2025-08-03 20:26:20 +02:00
Raul Santos 8950744921
[.NET] Fix enum from/to Variant conversion
- `typeof(T).IsEnum` and `typeof(T).GetEnumUnderlyingType()` are intrinsified in .NET 8+ so we can simplify the code in VariantUtils a bit.
- Consider whether enum `T` is signed in VariantUtils to preserve it.
2025-07-11 20:14:23 +02:00
Thaddeus Crews afd16dd4f3
Merge pull request #99798 from preslavnpetrov/master
[C#] Fix thread deadlock when using a worker thread to load a script with a generic base class
2025-07-09 11:33:20 -05:00
Thaddeus Crews 320484a8fb
Merge pull request #108262 from aaronfranke/csharp-crash-bad-enum
Fix crash in C# bindings generator with bad enum documentation XML
2025-07-07 10:07:56 -05:00
A Thousand Ships f11aff3841
Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00
Aaron Franke ab90808fee
Fix crash in C# bindings generator with bad enum documentation XML 2025-07-03 20:48:09 -07:00
Thaddeus Crews fc20bb6b03
Merge pull request #100187 from atlasapplications/dotnet-export-icu
Update Dotnet iOS Export Process
2025-07-03 12:21:26 -05:00
Preslav.Laptop 85d2a23a62
Move the script reload function to outside the
lock to prevent worker threads from the
ResourceLoader::load method from causing a
deadlock
2025-07-02 19:11:20 +02:00
Thaddeus Crews f8b2f1bc82
Merge pull request #101006 from zaevi/fix_csharp_refcounted_dispose
C#: Fix `RefCounted` not disposed correctly in certain case
2025-07-01 17:58:00 -05:00
Justin Sasso aa0ed1b469 Update Dotnet iOS Export Process
Update iOS export to allow for hybrid globalization introduced in .NET 9 while preserving .NET 8 settings. Also allows for custom ICU or no ICU.
2025-07-01 14:02:28 -04:00
Rémi Verschelde 25525bcfa5
Merge pull request #108053 from raulsntos/dotnet/check-msbuild-panel-for-details
[.NET] Mention MSBuild panel when building fails
2025-06-28 13:03:27 +02:00
Rémi Verschelde 5aefc2eca8
Merge pull request #108041 from bs-mwoerner/cs_get_extension
C#: Fix return value of `StringExtensions.GetExtension()`
2025-06-28 13:03:24 +02:00
Raul Santos c67f95d80e
[.NET] Mention MSBuild panel when building fails 2025-06-27 20:30:12 +02:00
Thaddeus Crews dc41b31392
Merge pull request #107618 from DanielGSilva/quat-arc
Fix `Quaternion(arc_from: Vector3, arc_to: Vector3)` behaves differently in gdscript and c#
2025-06-27 09:39:47 -05:00
Michael Wörner 77208a62a4 Fix String.GetExtension() return value.
It previously returned the string itself when it should return an empty string according to the docs/examples and the C++ counterpart String::get_extension().
2025-06-27 12:01:11 +02:00
danielgsilva ed1e8a1460 Fix mismatch of constructors 2025-06-26 10:35:47 +01:00
Raul Santos 70d0ecbb16
[.NET] Avoid exporting to duplicate architectures
Use a `HashSet` to avoid adding duplicate architectures on exporting. It seems we were adding `x86_64` and `arm64` twice to macOS exports because they are also included in the features.
2025-06-25 21:41:29 +02:00
Thaddeus Crews 26678d065f
Merge pull request #106243 from juanjp600/dotnet-script-initialization-order-collections-bug
Fix 'Script class can only be set together with base class name' error with .NET typed collections upon rebuild
2025-06-24 09:58:33 -05:00
Joyless d956bcf749 Add ROS overload for Callable.Call 2025-06-21 13:43:52 +01:00
Rémi Verschelde 3be63ecdb6
Fix Mono build on Windows after `String::resize` rename 2025-06-13 18:01:50 +02:00
Rémi Verschelde 7e9b709917
Merge pull request #102837 from raulsntos/dotnet/fix-reload-callables
[.NET] Skip serializing delegates with a disposed target
2025-06-13 15:53:33 +02:00
Rémi Verschelde 6eb6e3e6e0
Merge pull request #107457 from akien-mga/improve-error-message-call-single-argument
Improve error messages for method calls expecting only 1 argument
2025-06-12 22:49:36 +02:00
Rémi Verschelde d1083c9722
Improve error messages for method calls expecting only 1 argument 2025-06-12 17:02:59 +02:00
Lukas Tenbrink e2931a5c19 Make conversions from `NodePath` to `String` explicit. 2025-06-11 16:50:27 +02:00
Thaddeus Crews dddaba29ee
Merge pull request #107300 from beicause/cs-add-basis-scaled-local
C#: Add `Basis.ScaledLocal`
2025-06-09 12:31:31 -05:00
Thaddeus Crews 0cd7bb51e9
Merge pull request #96146 from raulsntos/dotnet/resolve-hostfxr-path-from-command-line
C#: Resolve the hostfxr path using dotnet CLI
2025-06-09 12:31:27 -05:00
Raul Santos 5a2c033914
C#: Resolve the hostfxr path using dotnet CLI
Instead of trying to get the location of the dotnet CLI from PATH (which is unavailable in some platforms that don't allow reading environment variables), we execute the dotnet CLI to list the available SDKs and find the hostfxr location that way.
2025-06-09 06:35:20 +02:00
LuoZhihao 44f5974bb7 C#: Add `Basis.ScaledLocal` 2025-06-09 12:32:48 +08:00
kobewi 13f642d959
Replace XML codeblock spaces with tabs 2025-06-06 14:35:38 +02:00
Rémi Verschelde 9d0b4ee74f
Merge pull request #105927 from Joy-less/Don't-create-unnecessary-arrays-in-C#
Don't create unnecessary arrays in C#
2025-06-05 13:11:06 +02:00
Thaddeus Crews 0d88e17143
Merge pull request #105629 from aaronp64/list_sort
Reuse and optimize sorting logic for `List`, `SelfList`, and `HashMap`
2025-06-04 10:34:37 -05:00
Thaddeus Crews 46437d3c9f
Merge pull request #82083 from ronyeh/typo
Remove unnecessary spaces.
2025-06-04 10:34:26 -05:00
aaronp64 6b2674fe18 Reuse and optimize sorting logic for List, SelfList, and HashMap
Added SortList class, and updated List, SelfList, and HashMap sort methods to use it.  Sorting is done with merge sort, with an initial check to optimize for already sorted lists, and sorted lists that were appended to.
2025-06-04 10:18:22 -04:00
Pāvels Nadtočajevs 617e12a6b4
[Windows] Drop support for Windows 7/8/8.1. 2025-05-30 17:30:23 +03:00
Thaddeus Crews 91b3a26438
Merge pull request #106848 from Faless/mp/rpc_config_revert
Expose `get_rpc_config` and `get_node_rpc_config`
2025-05-27 09:39:32 -05:00
Thaddeus Crews 66d20a24b4
Merge pull request #106008 from beicause/cs-byte-array-compress
C#: Expose byte array compress and decompress
2025-05-26 11:24:28 -05:00
Fabio Alessandrelli c28d5d0058 Revert "Expose get_rpc_config and get_node_rpc_config"
This reverts commit 8835f326b1.
2025-05-26 15:57:38 +02:00
LuoZhihao fc8328d5f1 C#: Expose byte array compress and decompress 2025-05-25 23:42:23 +08:00
Rémi Verschelde 25a3c27c41
Merge pull request #105628 from rsanchezsaez/apple/ios-visionos-4.5
Native visionOS platform support
2025-05-20 23:09:07 +02:00