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
Ricardo Sanchez-Saez
457299449d
Introduce 'drivers/apple_embedded' abstract platform for code reuse
2025-05-19 15:37:13 -07:00
Thaddeus Crews
2bf7ac76cf
Merge pull request #106456 from Repiteo/style/remove-DEBUG_METHODS_ENABLED
...
Style: Remove redundant `DEBUG_METHODS_ENABLED` macro
2025-05-19 08:01:35 -05:00
Thaddeus Crews
23321951d7
Merge pull request #106374 from YYF233333/opt_script_get_keyword
...
Improve `ScriptLanguage` get keyword API
2025-05-19 08:01:27 -05:00
Thaddeus Crews
d57050c66d
Merge pull request #106502 from TCROC/fix-aot-crash
...
Fix crash on aot unloading
2025-05-19 08:01:26 -05:00
Yufeng Ying
1384e82c2c
Improve ScriptLanguage get keyword API.
2025-05-17 18:43:19 +08:00
Travis Lange
15c684aad9
fix crash on aot unloading
2025-05-16 16:26:40 -04:00
Thaddeus Crews
d237e31a89
Style: Remove redundant `DEBUG_METHODS_ENABLED`
...
• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
2025-05-15 13:09:41 -05:00
Thaddeus Crews
b7c4f23203
Merge pull request #105819 from hexog/implicit-package-references
...
Mark referenced packages in SDK as implicitly defined
2025-05-15 10:22:25 -05:00
Joyless
14783cd8b8
Fix array span constructors
2025-05-13 13:28:00 +01:00
Rémi Verschelde
599a956f6f
Merge pull request #106177 from eyalzus12/feature/stackalloc-Projection
...
C#: Use `stackalloc` to create the pivot arrays in `Projection.Inverse`
2025-05-13 01:05:00 +02:00
Rémi Verschelde
56937b8383
Merge pull request #105853 from youngminz/android-dotnet-skip-extraction
...
[.NET] Load assemblies directly from PCK on Android
2025-05-13 01:04:48 +02:00
Rémi Verschelde
b44aa1ad9d
Merge pull request #105104 from Joy-less/use-frozen-dictionary
...
Use `FrozenDictionary` for `NamedColors`
2025-05-13 01:04:39 +02:00
Youngmin Koo
b99baa38f1
C#: Load assemblies directly from PCK on Android
...
Assemblies are now loaded directly from the PCK (`res://`) instead of
a cache directory. This prevents runtime failures that occurred when
the OS cleared cached files (e.g., under low storage), ensuring
the required assemblies are always available.
2025-05-12 19:31:44 +09:00
Juan Pablo Arce
3d7c4b8012
Fix 'Script class can only be set together with base class name' error with .NET typed collections upon rebuild
2025-05-10 03:09:39 -03:00
EyalZusiman
2ebfeef4a8
C#: use stackalloc to create the pivot arrays in Projection.Inverse
2025-05-08 18:27:32 +03:00
Fredrik Lindahl
01056f369a
[.NET] Avoid heap allocation when using StringNames as key in a Collection.Dictionary.
...
Changed StringName GetHashCode to call godot_string_name.GetHashCode instead of godot_string_name's (which was not overridden) as this otherwise leads to heap allocations when e.g. calling the indexer in a Dictionary with `StringName` type as Key.
2025-05-08 08:41:22 +02:00
Thaddeus Crews
1cf573f44d
Merge pull request #105887 from Repiteo/core/modernize-headers
...
Core: Modernize C headers with C++ equivalents
2025-05-02 09:25:29 -05:00
Thaddeus Crews
01fc9aee6c
Core: Modernize C headers with C++ equivalents
2025-05-02 08:23:01 -05:00
Aaron Franke
a404b668a1
Change Node set_name to use StringName
2025-05-01 15:15:19 -07:00
Joyless
e9da0dfd30
Don't create unnecessary arrays in C#
2025-04-29 23:57:26 +01:00
Thaddeus Crews
c87f23ce7d
Merge pull request #89324 from KoBeWi/pandora's_can_of_worms
...
Allow exporting variables of type Variant
2025-04-28 10:01:33 -05:00
Egor Nikulin
976e60ea24
Mark referenced packages in SDK as implicitly defined
...
Should improve package manager behavior
and fix errors in solutions using CPM.
https://github.com/NuGet/Home/issues/13529
https://github.com/dotnet/sdk/pull/43151/files#r1746148520
2025-04-27 14:00:55 +04:00
Thaddeus Crews
28089c40c1
Merge pull request #91006 from reduz/live-backtrace
...
Ability to print and log script backtraces
2025-04-24 17:18:52 -05:00
reduz
d1dcb40d56
Ability to print and log script backtraces
...
Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
2025-04-24 18:54:41 +02:00
Lukas Tenbrink
91fe434a86
Always use `String` as `StringName` backing internally.
2025-04-23 14:57:03 +02:00
LuoZhihao
b0348d0e58
C#: Avoid StringName allocation in `GodotObject.Free`
2025-04-17 20:10:34 +08:00
Thaddeus Crews
fa5dd77566
Merge pull request #105262 from raulsntos/dotnet/android-no-copy
...
[.NET] Add a preload hook to load .NET assemblies from the APK
2025-04-15 12:28:40 -05:00
Thaddeus Crews
561dc6ced6
Merge pull request #104689 from Delsin-Yu/csharp-getset-alloc-perf
...
[.Net] Avoid unnecessary StringName allocations on not implemented virtual _Get and _Set method call
2025-04-14 19:39:53 -05:00
Paul Joannon
88191b0b15
Fix extraction of C# default property values when negative
2025-04-13 17:57:20 +02:00
DE-YU_H14
f0ec392bb1
[.Net] Avoid StringName allocations if type does not defines `_Get` or `_Set`
2025-04-12 03:39:24 +08:00
Zae
e8311840e4
[.NET] Fix `string.PathJoin` to be consistent with core
2025-04-11 23:21:29 +08:00
Thaddeus Crews
98c204a8f0
Merge pull request #104828 from van800/rider_fleet
...
C#: Separate Rider and Fleet options as external editors
2025-04-11 09:51:13 -05:00
Ivan Shakhov
45a07c1ab9
split Rider and Fleet as different external editors for Godot C#
...
Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-04-11 13:21:50 +02:00
Priahoud
bf963e767e
Add Options, Functions and Settings to convert Node-Names and Strings to kebab-case
...
- refactored and renamed String::_camelcase_to_underscore to String:_separate_compound_words
- refactored String::to_snake_case to work with the refactored String::_separate_compound_words
- created char_utils::is_hyphen to catch all hyphen variants in kebab-case conversion
- created String::to_kebab_case using the new String::_separate_compound_words
- created corresponding Documentation in String and StringName
- simplified both switch statements in EditorNode and ProjectDialog
- added new kebab-casing Option for Node Names in ProjectSettings
- added missing camelCase Options to Scene- and Node-Names in ProjectSettings
- simplified Mono RuntimeInterop Functions
- hooked up the ConnectionsDialog
- created additional Unit Tests
2025-04-10 21:22:21 +02:00
Raul Santos
b941c2d013
[.NET] Add a preload hook to load .NET assemblies from the APK
...
Avoids using assemblies extracted to a temporary directory in Android.
2025-04-10 21:10:51 +02:00
A Thousand Ships
889410dcda
Add `String::replace_char(s)` methods for performance and convenience
2025-04-10 13:08:45 +02:00
kobewi
13741ff913
Add FoldableContainer
...
Co-authored-by: WhalesState <whalesstate@gmail.com>
2025-04-08 22:27:32 +02:00
Joyless
f7f6e5ee21
Use `FrozenDictionary`
2025-04-06 20:13:02 +01:00
DE YU
af67fb1f62
Avoid array allocation when signal have 0 arg
2025-04-06 16:02:35 +08:00
Yufeng Ying
7a1a970c25
size() <= 0 and size() < 1.
2025-04-02 19:18:44 +08:00
Yufeng Ying
4f4031a675
Replace size() == 0 with is_empty().
2025-04-02 19:18:43 +08:00
scgm0
c8ade8618b
Fix Windows Mono build
2025-04-01 06:45:33 +08:00
Kiro
23129a66ed
Replace append_utfx with direct String::utfx
2025-03-30 19:56:38 +02:00
Thaddeus Crews
780cf03051
Merge pull request #104556 from Ivorforce/string-extend-instead-of-parse
...
Use `append_` instead of `parse_` for `String` methods.
2025-03-29 10:16:33 -05:00
Rémi Verschelde
0d3ce48562
Merge pull request #104279 from L2750558108/pr-fix-nested-in-generic-errors
...
Fix nested GodotObject class in generic class lead to source generator errors in C#
2025-03-28 14:32:44 +01:00
Lukas Tenbrink
ffa6ef220b
Use `append_` instead of `parse_` for `String` methods.
2025-03-27 17:51:02 +01:00
Thaddeus Crews
2161217ed6
Merge pull request #104219 from van800/source_gen_fix
...
C#: Fix source generator for primary constructor
2025-03-24 10:00:59 -05:00
Thaddeus Crews
1cb3cfaa8e
Style: Convert namespaces to PascalCase
2025-03-23 19:10:24 -05:00
Thaddeus Crews
8f331ebd9c
Merge pull request #103099 from YeldhamDev/build_res_loader_disable
...
Disable `ResourceFormatLoader/Saver`s of disabled classes
2025-03-23 19:04:01 -05:00
Thaddeus Crews
f09ee0171a
Style: Begin integrating simple `.clangd` fixes
2025-03-22 13:24:35 -05:00
2750558108
6a56ed8926
Fix nested GodotObject class in generic class lead to source generator errors in C#
2025-03-22 20:46:52 +08:00
Michael Alexsander
090358afcf
Disable `ResourceFormatLoader/Saver`s of disabled classes
2025-03-21 14:23:05 -03:00
Ivan Shakhov
724c0021c7
fix https://github.com/godotengine/godot/issues/104135 Generator for C# makes illegal code for a GodotObject with a primary ctor
...
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2025-03-21 08:34:25 -07:00
Thaddeus Crews
a9065db5ad
Merge pull request #104130 from KoBeWi/are_tools_enabled_when_tools_are_enabled
...
Remove `TOOLS_ENABLED` checks from `editor/`
2025-03-17 10:52:25 -05:00
Raul Santos
2213545fc5
[.NET] Deprecate compat methods that reference deprecated types
2025-03-14 21:33:33 +01:00
kobewi
7cb2fb189a
Remove TOOLS_ENABLED checks from editor/
2025-03-14 18:13:16 +01:00
Thaddeus Crews
b377562b52
Merge pull request #91660 from AThousandShips/methodinfo_vec
...
[Core] Use `Vector` for `MethodInfo::arguments`
2025-03-14 10:06:13 -05:00
Thaddeus Crews
4292f2464c
Merge pull request #104113 from aaronfranke/projection-construct
...
Add missing Projection constructor with 16 `real_t` values
2025-03-14 10:06:07 -05:00
Aaron Franke
ced61da848
Add missing Projection constructor with 16 real_t values
2025-03-14 02:57:19 -07:00
Aaron Franke
6c9087fb5a
Fix missing Vector4(i) and Projection in C# bindings generator
2025-03-13 19:04:47 -07:00
Aaron Franke
97ee05e9b7
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
2025-03-12 11:11:38 -07:00
Adam Johnston
e202851e20
C#: Add missing `get_data` when calling `CFStringCreateWithCString` in `macos_utils`
2025-03-12 15:49:54 +01:00
Thaddeus Crews
e1b9048ae4
Merge pull request #103536 from raulsntos/dotnet/shipped-diagnostics
...
Move entries from `AnalyzerReleases.Unshipped.md` to `AnalyzerReleases.Shipped.md`
2025-03-11 09:34:51 -05:00
Thaddeus Crews
4af4b66d1b
Merge pull request #102765 from Delsin-Yu/csharp-typed-collections-documentation-improvments
...
[C#] Improve Documentation for Typed `Godot.Collections` Wrappers
2025-03-10 21:05:52 -05:00
Thaddeus Crews
30bb49ec1f
Merge pull request #102356 from a-johnston/add_missing_cs_vector_methods
...
Add `Min(float)` and octahedron encode/decode to `Vector3.cs`
2025-03-10 10:01:20 -05:00
Thaddeus Crews
8d1c1c5867
Merge pull request #92476 from AThousandShips/string_remove_char
...
Add `String::remove_char(s)` methods for performance and convenience
2025-03-10 10:01:04 -05:00
A Thousand Ships
d9721954e6
[Core] Use `Vector` for `MethodInfo::arguments`
2025-03-10 13:57:53 +01:00
A Thousand Ships
331a43a9d8
Add `String::remove_char(s)` methods for performance and convenience
2025-03-10 13:19:28 +01:00
Thaddeus Crews
713a1ba554
Style: Standardize Obj-C `#import` syntax
2025-03-08 09:28:34 -06:00
Thaddeus Crews
324512e11c
Style: Replace header guards with `#pragma once`
2025-03-07 17:33:47 -06:00
Thaddeus Crews
850599c36d
Merge pull request #98153 from Delsin-Yu/dotnet-warn-missing-tool-preprocessor
...
[Editor] Prevent `TOOLS` .Net DefineConstants being overriden by the user
2025-03-07 15:12:49 -06:00
Thaddeus Crews
3d9b37911d
Merge pull request #103011 from Repiteo/style/svgo-newline
...
Style: Ensure svgs have trailing newlines
2025-03-07 15:12:41 -06:00
Thaddeus Crews
3c43508ed7
Merge pull request #102427 from AThousandShips/fix_substr
...
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
Thaddeus Crews
0c8f4f3d91
Merge pull request #97908 from atlasapplications/just-linux-bionic
...
Add `linux-bionic` RID export option
2025-03-07 15:12:32 -06:00
Thaddeus Crews
c937b6d180
Merge pull request #102419 from Ivorforce/std-size
...
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-03-07 15:12:25 -06:00
Thaddeus Crews
d9125ebebe
Merge pull request #101293 from Ivorforce/string-to-pointer-conversion
...
Remove implicit conversions from `String`, `Char16String` and `CharString` to data pointers.
2025-03-07 15:12:12 -06:00
A Thousand Ships
5113022dfe
Clean up some uses of `String::substr`
...
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Thaddeus Crews
f002258454
Merge pull request #103714 from raulsntos/dotnet/skip-resaving-when-tfm-unchanged
...
[.NET] Skip re-saving `.csproj` when TFM is unchanged
2025-03-06 16:36:08 -06:00
Raul Santos
57d5b664d3
[.NET] Skip re-saving `.csproj` when TFM is unchanged
...
Avoids updating the platform-specific `TargetFramework` properties if they already match the minimum required version.
2025-03-06 18:49:08 +01:00
Rémi Verschelde
a414fed4c5
Merge pull request #98034 from raulsntos/dotnet/variant-object-id
...
[.NET] Use `ObjectID` when converting `Variant` to `GodotObject`
2025-03-04 01:00:16 +01:00
Raul Santos
7dcad4c9ad
Move entries from `AnalyzerReleases.Unshipped.md` to `AnalyzerReleases.Shipped.md`
2025-03-04 00:35:42 +01:00
Rémi Verschelde
1c35a31b9e
Bump version to 4.5-dev
...
Mr. Godot told me to tell you he won't come this evening but surely tomorrow.
2025-03-03 17:27:40 +01:00
Pāvels Nadtočajevs
ddd807ff7d
Add `(void *)` cast directly to `GetProcAddress` calls.
2025-02-27 12:30:04 +02:00
DE-YU_H14
b2b7c1fd77
Force include `TOOLS` in Editor to prevent data loss
...
Update modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.targets
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2025-02-23 05:54:27 +08:00
Thaddeus Crews
7e5baa0426
Style: Enforce trailing newlines on svgs
2025-02-18 11:02:45 -06:00
kobewi
012d47b089
Allow exporting variables of type Variant
2025-02-15 18:00:55 +01:00
Rémi Verschelde
7a0e659a80
Merge pull request #102836 from raulsntos/dotnet/export-tool-button-no-storage
...
[.NET] Disallow `[ExportToolButton]` on members thay may store the Callable
2025-02-14 22:58:25 +01:00
Raul Santos
2550cdc0c4
[.NET] Skip serializing delegates with a disposed target
...
When reloading assemblies, we serialize the managed delegates so we can recreate the callables later. If the delegate's target is a GodotObject that has already been disposed, we can't serialize the delegate.
Before this change, trying to serialize one of these delegates throws an exception and prevents releasing its strong GCHandle, so the assembly can't be unloaded.
With this change, we don't serialize the delegates and release them anyway. This means some delegates may get lost on reloading assemblies, but if their target was already freed it's probably fine.
2025-02-14 03:17:06 +01:00
DE-YU_H14
288e3e3af2
Improve documentation for C# typed collection wrappers
2025-02-14 08:19:58 +08:00
Raul Santos
f4094b554d
[.NET] Disallow `[ExportToolButton]` on members thay may store the Callable
...
Ensures the user doesn't store the Callable so the .NET assembly can be reloaded.
2025-02-14 01:09:59 +01:00
Thaddeus Crews
c90fd7f3da
Merge pull request #98066 from TCROC/fix-android-mono-export
...
Fix Android mono export with 2 or more cpu architectures fails
2025-02-10 12:21:32 -06:00
Travis Lange
5e2fd7b1d7
fix android mono export causing conflicts
2025-02-10 10:09:52 -05:00
Lukas Tenbrink
e34f1f504c
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-02-07 14:57:48 +01:00
bruvzg
3be46a69c4
Fix uppercase B and X parsing in the integer literals.
2025-02-05 16:02:06 +02:00
Adam Johnston
14f7e6ff60
Add Min(float) and octahedron encode/decode to Vector3.cs
2025-02-04 14:21:25 -08:00
Thaddeus Crews
acddf31c39
Merge pull request #101489 from RandomShaper/optimize_classnames_enumeration
...
Optimize classnames enumeration
2025-02-04 09:03:59 -06:00
Pedro J. Estébanez
318af42020
Include more attributes in the global class names cache
2025-01-29 09:39:50 +01:00
Justin Sasso
8a4bc9881f
Add linux-bionic RID Export Option
...
Adds an export option to enable the linux-bionic RID so Android can export with NativeAOT enabled.
2025-01-28 12:54:10 -05:00
Raul Santos
5a53ec55ec
[.NET] Add Obsolete attribute to signal trampolines and emitter functions
...
If a signal is deprecated, make sure we also add the `[Obsolete]` attribute to that signal's trampoline and emitter functions.
2025-01-24 02:18:28 +01:00
Lukas Tenbrink
512abc38b2
Remove implicit conversions from String, Char16String and CharString to data pointers. Make conversions to StrRange implicit to aid transition.
2025-01-17 17:31:58 +01:00
Thaddeus Crews
73278bf35d
SCons: Properly `NoCache` all text files
2025-01-16 16:59:12 -06:00
Thaddeus Crews
9d0c41a489
Style: Unify `.editorconfig` logic
2025-01-12 08:49:01 -06:00
LuoZhihao
a71a8c6e1e
C#: Expose OKHSL properties of Color
2025-01-09 19:18:56 +08:00
Yufeng Ying
34d8255947
Force build editor with regex module, remove checking code.
...
Fix include.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-07 19:43:23 +08:00
Ricardo Subtil
b77aa473a1
Implement a "Recovery Mode" for recovering crashing/hanging projects during initialization
2025-01-03 10:50:15 +00:00
Rémi Verschelde
29bd5c06ef
Merge pull request #100636 from raulsntos/dotnet/emit-signal-fix
...
[.NET] Fix EmitSignal with typed array parameters
2025-01-03 02:01:20 +01:00
Zae
05b840a815
C#: Fix `RefCounted` not disposed correctly in certain case.
2025-01-02 05:05:43 +08:00
A Thousand Ships
a1846b27ea
Improve use of `Ref.is_null/valid`
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Raul Santos
63960e1ed6
[.NET] Update required .NET SDK version in error messages
...
Also, replaces the download URL with a shorter one since links are not clickable so I thought it'd be more convenient.
2024-12-20 21:57:38 +01:00
Raul Santos
975369fceb
[.NET] Fix EmitSignal with typed array parameters
...
Signals with typed arrays were generating EmitSignal methods with untyped array parameters.
2024-12-20 06:51:09 +01:00
Thaddeus Crews
8642e970c5
C#: Add option to treat warnings as errors
2024-12-18 10:23:41 -06:00
Rémi Verschelde
6cba6299f9
Merge pull request #100195 from raulsntos/dotnet/upgrade-tfm
...
[.NET] Upgrade user project's TargetFramework to `net8.0`
2024-12-18 09:53:10 +01:00
Rémi Verschelde
7d30972f7c
Merge pull request #99539 from RandomShaper/fix_dotnet_rl_deadlock
...
Avoid deadlocks in multi-threaded management of the C# script map
2024-12-18 09:53:01 +01:00
Raul Santos
8d41b5a582
[.NET] Upgrade user project's TargetFramework to `net8.0`
...
- Upgrades the TFM for new created projects to `net8.0`.
- Implements system to upgrade TFM for existing projects to `net8.0`.
2024-12-18 02:44:32 +01:00
Rémi Verschelde
f1cf8ebfd6
Merge pull request #100506 from akien-mga/dotnet-8.0-fix-GodotSharp-build
...
.NET: Downgrade Microsoft.CodeAnalysis.CSharp to 4.8.0 for compat with SDK 8.0.1xy
2024-12-17 23:00:13 +01:00
Rémi Verschelde
cb0d731daf
Merge pull request #100351 from raulsntos/dotnet/android-gradle-fix
...
[.NET] Fix gradle builds for multiple ABIs
2024-12-17 22:59:58 +01:00
Rémi Verschelde
4047e4b894
.NET: Downgrade Microsoft.CodeAnalysis.CSharp to 4.8.0 for compat with SDK 8.0.1xy
...
And for CI, set up .NET SDK 8.0.100 explicitly to test our min supported version.
2024-12-17 15:56:56 +01:00
Danil Alexeev
80d11500b5
Code Editor: Add documentation tooltips
2024-12-15 10:51:33 +03:00
Paul Joannon
fb8553e4d7
Move to .NET8
...
- Change TFM and LangVersion
- Better exception throwing (CA1510, CA1512, CA1513)
- Better exception utility method definition (CA1859)
- Prefer comparing `.Count` over calling `.Any()` (CA1860)
- Prefer `.AsSpan()` over `.Substring()` (CA1846)
- Add a few more `scoped`
- Use `RuntimeHelpers.GetUninitializedObject()` instead of `FormatterServices.GetUninitializedObject()`
- Use delegate instead of delegate pointer in variant generic conversions
- Enable EnforceExtendedAnalyzerRules in source generator projects
- Disable CS8981 on structs named movable in Godot.NativeInterop
2024-12-13 14:00:13 +01:00
Raul Santos
d526d523b4
[.NET] Fix gradle builds for multiple ABIs
...
Include the needed .NET jar in the Godot templates so it's always available, then we don't need to include the jar from a .NET publish which could fail when exporting to multiple architectures because it would attempt to add the same jar for each architecture.
2024-12-13 08:01:13 +01:00
RedworkDE
f0b6b24d9e
C#: Update to net7.0
...
Because of ref safety changes in the languages, all methods that return an interop struct have to have all other reference parameters marked as scoped to signal the the method does not capture that reference.
The variant change is necessary, because for some reason a type of the exact shape godot_variant is in, crashes the .NET 7 JIT, but when changing it to be sequential with the same effective layout it works.
2024-12-12 17:42:39 +01:00
Thaddeus Crews
57d08dbec3
C#: Fix warnings caught by new problem-matchers
...
• Restore MSVC problem matcher for Linux builds
2024-12-10 14:04:35 -06:00
Thaddeus Crews
b4bd38444b
Merge pull request #98545 from juanjp600/dotnet-generic-collections-set-typed
...
Fix generic arrays and dictionaries in .NET not calling `set_typed`
2024-12-09 14:33:37 -06:00
Juan Pablo Arce
8ab27a7ccf
Fix generic arrays and dictionaries not calling set_typed
2024-12-08 01:01:19 -03:00
Lukas Tenbrink
b5c31ebb41
Add contains_char() for single-character 'contains' calls.
2024-12-06 20:23:35 +01:00
Pedro J. Estébanez
f8f5505b26
Avoid deadlocks in multi-threaded management of the C# script map
2024-12-03 07:38:14 +01:00
Kiro
83d4bde0a2
When calling code has length of string, pass it to parse_utf8
2024-12-01 08:31:22 +01:00
Thaddeus Crews
ea3154a0d4
Merge pull request #99424 from dalexeev/core-fix-builtin-enum-const-binds
...
Core: Fix built-in enum constant bindings
2024-11-22 14:54:31 -06:00
Danil Alexeev
03b05cf9ac
Core: Fix built-in enum constant bindings
2024-11-22 14:03:21 +03:00
Raul Santos
4e5080d805
[.NET] Preserve no-hint behavior for unmarshallable generics in dictionaries
2024-11-21 20:38:55 +01:00
Thaddeus Crews
ec7fd4f6f1
Merge pull request #97894 from paulloz/dotnet/export-tool-button
...
Implement `[ExportToolButton]`
2024-11-19 15:20:07 -06:00
Paul Joannon
4f52c2bb1f
Implement [ExportToolButton]
2024-11-18 20:19:47 +01:00
Thaddeus Crews
1889d2a264
Merge pull request #99206 from a-johnston/fix_double_diagnostic
...
Remove duplicate read/write-only property warning from ScriptPropertiesGenerator
2024-11-18 09:23:30 -06:00
A Thousand Ships
68f638cf02
Use `(r)find_char` instead of `(r)find` for single characters
2024-11-17 10:02:18 +01:00
Adam Johnston
186f35fc9b
remove duplicate read/write only property warning from ScriptPropertiesGenerator
2024-11-13 14:23:53 -08:00
Thaddeus Crews
0dd003d7d2
Merge pull request #98467 from zaevi/fix_csharp_stringname_leak
...
C#: Fix StringName leak when converting `Variant` to `Signal` / `Callable`
2024-11-12 09:27:49 -06:00
Thaddeus Crews
2705202ebb
Merge pull request #98459 from zaevi/fix_csharp_signal_parameters
...
C#: Escape signal parameters
2024-11-12 09:27:43 -06:00
Thaddeus Crews
66fb0cd9f7
Merge pull request #89051 from Calinou/csharp-vscode-add-codium-support
...
Add Codium support to C# external editors
2024-11-11 14:18:34 -06:00
Thaddeus Crews
925b690c98
Core: Integrate `Ref::instantiate` where possible
2024-11-10 12:41:26 -06:00
Hugo Locurcio
9f2bd57b7b
Add Codium support to C# external editors
...
Selecting the VS Code option will now work if Codium is installed,
picking it as the last option after attempting to run VS Code.
2024-11-02 00:00:41 +01:00
Thaddeus Crews
363c0b5fec
Merge pull request #47502 from KoBeWi/add_0
...
Always add decimal when converting float to string
2024-10-31 20:14:39 -05:00
Adam Scott
0d350e7108
Set clang-format `RemoveSemicolon` rule to `true`
...
- Set clang-format `Standard` rule to `c++20`
2024-10-25 13:49:43 -04:00
Zae
06df5275c2
C#: Fix StringName leak when converting `Variant` to `Signal` / `Callable`
2024-10-24 00:08:43 +08:00
Zae
2a3d400dd8
C#: Escape signal parameters
2024-10-23 23:24:00 +08:00
kobewi
5c0f2414cd
Always add decimal when printing float
2024-10-23 15:00:21 +02:00
Thaddeus Crews
cb3c01a5fe
Merge pull request #97588 from TML233/generated-raise-signal
...
[C#] Change generated On{SignalName} to EmitSignal{SignalName}
2024-10-21 16:39:12 -05:00
Juan Pablo Arce
e3790de461
Fix exported typed dictionaries in .NET having an incorrect hint, which led to incorrect scene serialization
2024-10-18 00:55:24 -03:00