Raul Santos
ffbd59572e
Various fixes to C# documentation
...
(cherry picked from commit 2deabd553f
)
2021-12-08 11:28:12 +01:00
Raul Santos
613751a742
Fix get_all_delegates method for generic classes
...
If the class is generic, we must get its generic type definition and use
it to retrieve the delegates.
2021-12-04 01:51:50 +01:00
Rémi Verschelde
c9208704de
Merge pull request #54614 from aaronfranke/3.x-math-api
2021-11-29 12:57:25 +01:00
Aaron Franke
1d8cef8236
[3.x] Backport some APIs in math structs
2021-11-27 01:19:45 -06:00
Aaron Franke
5ec0a8df5e
[3.x] Add documentation to operators for math types
2021-11-27 01:15:43 -06:00
Marcel Admiraal
4d3690eba5
Remove unimplemented methods
2021-11-18 12:47:36 +00:00
Rémi Verschelde
3ac2999f22
Replace Godot docs URL with `$DOCS_URL` in XML class reference
2021-11-15 17:22:47 +01:00
Hugo Locurcio
4c88a82f50
Move Mono unhandled exception setting to be located within a subsection
...
Settings that aren't within a subsection are difficult to reach when
other settings do have a subsection.
This also adds documentation for the project setting.
2021-11-10 20:57:35 +01:00
Rémi Verschelde
d0b1e3d002
Merge pull request #53942 from raulsntos/no-boxing
2021-11-08 13:15:25 +01:00
Rémi Verschelde
837f2c5f82
Merge pull request #54746 from neikeq/issue-42076
...
C#: Don't use ActivityThread to determine Android nativeLibraryDir
2021-11-08 10:02:48 +01:00
Ignacio Roldán Etcheverry
690bf12c4c
C#: Don't use ActivityThread to determine Android nativeLibraryDir
2021-11-08 02:35:06 +01:00
Rémi Verschelde
14c366ddd7
Bump version to 3.5-beta
2021-11-05 16:10:17 +01:00
Ignacio Roldán Etcheverry
e282ee0a48
C#: Fix property set call boxing value when unboxed was expected
2021-11-03 13:02:53 +01:00
Ignacio Etcheverry
b775573a21
Don't box params on Native->C# calls with Variant params
...
Godot uses Variant parameters for calls to script methods.
Up until now we were boxing such parameters when marshalling
them for invokation, even if they were value types.
Now Godot allocates the marshalled parameters on the stack,
reducing the GC allocations resulted from boxing.
2021-11-03 13:02:53 +01:00
Raul Santos
21f68e7bdb
Ensure C# script properties are added to the end
...
Ensures that the `get_property_list` and `get_script_property_list`
methods push the script properties to the end of the given list, this
prevents the script property from appearing after the script variables.
2021-10-30 16:55:21 +02:00
Rémi Verschelde
14ef65e49b
Merge pull request #54348 from akien-mga/3.x-clang-format-dont-align-operands
2021-10-28 15:43:15 +02:00
Rémi Verschelde
87c80f529f
clang-format: Enable `BreakBeforeTernaryOperators`
...
clang-format keeps breaking the way it handles break *after* ternary operators,
so I give up and go with the only style they seem to actually test.
2021-10-28 14:50:33 +02:00
Rémi Verschelde
42d385b312
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
Raul Santos
ced4f3519d
Avoid modifying csproj globbing includes
...
Check if the found globbing include already matches the new path on
moving scripts to avoid modifying users' csproj files.
2021-10-26 18:21:19 +02:00
Raul Santos
da419bbeed
Keep order for C# exported members
2021-10-24 21:14:20 +02:00
Aaron Franke
5659120af3
[3.x] Add support for the RISC-V architecture
...
Supports RV64GC (RISC-V 64-bit with general-purpose and compressed-instruction extensions)
2021-10-22 12:51:23 -05:00
Rémi Verschelde
fddbbf445b
SCons: Fix missing mono `.gen.cpp` sources after #53860
...
(cherry picked from commit d6aab5c1bf
)
2021-10-16 16:47:08 +02:00
Raul Santos
977898709f
Fix hint_string for C# enum arrays
2021-10-15 19:07:31 +02:00
Rémi Verschelde
f04a1bec63
Merge pull request #53628 from raulsntos/fix-list-marshal-3.x
2021-10-15 17:36:00 +02:00
Rémi Verschelde
b8761569f6
Merge pull request #53582 from raulsntos/mono-marshal-generics-3.x
2021-10-15 17:35:32 +02:00
Raul Santos
059750cd0d
Support marshaling generic Godot.Object
...
Allows using generic C# types in signals as long as they inherit
from `Godot.Object`.
2021-10-13 18:22:06 +02:00
Raul Santos
fd160b642e
Fix C# List<T> marshalling
2021-10-10 11:41:37 +02:00
Raul Santos
ec2f86ec9a
Support arrays of StringName, NodePath and RID in mono
2021-10-08 18:52:40 +02:00
Rémi Verschelde
db0370cab5
Merge pull request #51086 from aaronfranke/3.x-warn-dectime
2021-10-05 12:06:03 +02:00
Rémi Verschelde
d01c660954
Merge pull request #52964 from Pineapple/WIN32_LEAN_AND_MEAN
2021-10-05 12:03:52 +02:00
Rémi Verschelde
6e39566344
Merge pull request #52883 from Germanrc/script_reload_fix
...
C# scripts reload in editor fixed
2021-09-24 08:33:49 +02:00
Bartłomiej T. Listwon
f463e612a1
Add missing WIN32_LEAN_AND_MEAN
2021-09-23 10:36:31 +02:00
Germanrc
84a218d346
C# script reload fixed
...
Co-authored-by: Michael Bickel <mib@developium.net>
2021-09-21 23:03:45 +02:00
Aaron Franke
a5543bc35e
[3.x] Warn when using the dectime method
...
dectime has been removed in the master branch (what will be Godot 4.0)
2021-09-21 10:03:42 -05:00
Rémi Verschelde
b37776fa2f
Merge pull request #52591 from timothyqiu/error-macros
...
[3.x] Remove do{ } while(0) wrapper around error macros
2021-09-21 10:38:34 +02:00
Hugo Locurcio
59eafe4cd3
Remove `#ifdefs` for handling compilation with Visual Studio < 2015
...
Godot 3.3 and later require Visual Studio 2017 to be compiled.
(cherry picked from commit fc0bfbb33b
)
2021-09-19 11:30:22 +02:00
Aaron Franke
298e29c772
[3.x] Some more C# formatting and style fixes
2021-09-18 12:11:03 -05:00
Rémi Verschelde
bb2772d2f2
Merge pull request #52762 from magian1127/3.xTemp1
2021-09-18 14:51:07 +02:00
Magian
0263a87c8b
C#, replace the current Xform method with a * operator.
2021-09-18 20:40:08 +08:00
Rémi Verschelde
316b5dad2d
Merge pull request #52390 from raulsntos/csharp-docs-3.x
...
[3.x] Add documentation to GodotSharp
2021-09-18 01:00:03 +02:00
Rémi Verschelde
4b50cd9b56
Merge pull request #52763 from magian1127/3.xtemp2
2021-09-17 12:26:36 +02:00
Magian
58e742e2c0
C# Array<String> Export Support Enum(String)
2021-09-17 14:03:27 +08:00
Rémi Verschelde
ae58f94323
Merge pull request #52445 from nekomatata/fix-mono-nodepath-default-arg-3.x
2021-09-16 15:20:17 +02:00
Rémi Verschelde
154cca3d5d
Merge pull request #52595 from lewiji/mono-build-solution-shortcut
...
[3.x] Add editor keyboard shortcut for Mono Build solution button
2021-09-14 16:00:10 +02:00
Lewis James
48a6264a87
Add editor keyboard shortcut for Mono Build solution button
...
Update GodotSharpEditor.cs & csharp_script.cpp with better casing and localisation for HintTooltip on Build button
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-09-14 13:24:03 +01:00
Raul Santos
6a7ca43297
Expose `String.SimplifyPath` in C#
...
(cherry picked from commit 126b1ea149
)
2021-09-14 13:41:26 +02:00
Paul Joannon
e2b71de38b
Improve C# method listing
...
- implement CSharpInstance::get_method_list
- loop through parent classes in CSharpInstance::get_method_list and CSharpScript::get_script_method_list (#46408 )
(cherry picked from commit 19f25b6847
)
2021-09-14 13:41:26 +02:00
Haoyu Qiu
70853fd669
Remove do{ } while(0) wrapper around error macros
2021-09-12 15:04:53 +08:00
PouleyKetchoupp
781b979292
Fix NodePath default argument in mono bindings
...
Backport from master, mono was generating "" as default argument
instead of (NodePath)"".
2021-09-06 10:46:33 -07:00
Raul Santos
cacf3e28fd
Add documentation to GodotSharp
...
- Adds documentation to almost every class and member in `GodotSharp`
- Fixes some old documentation to more closely follow the XML comments convention
2021-09-04 20:15:53 +02:00