Ignacio Roldán Etcheverry
6679be45aa
Merge pull request #52492 from raulsntos/fix-csharp-array-properties
...
Fix properties arrays in C# bindings generator
2021-09-09 20:38:58 +02:00
Max Hilbrunner
75be697817
Merge pull request #52246 from Paulb23/verbatim-string
...
Syntax highlight c# verbatim string literal
2021-09-08 14:48:22 +02:00
Raul Santos
c6b1c8093f
Fix properties arrays in C# bindings generator
2021-09-08 12:52:39 +02:00
Max Hilbrunner
9ada29e918
Merge pull request #52289 from Calinou/remove-old-msvc-support-ifdef
...
Remove `#ifdefs` for handling compilation with Visual Studio < 2015
2021-09-07 21:01:44 +02:00
Fabio Alessandrelli
bf9aae09ba
[Net] Move multiplayer to core subdir, split RPCManager.
...
Move multiplayer classes to "core/multiplayer" subdir.
Move the RPCConfig and enums (TransferMode, RPCMode) to a separate
file (multiplayer.h), and bind them to the global namespace.
Move the RPC handling code to its own class (RPCManager).
Renames "get_rpc_sender_id" to "get_remote_sender_id".
2021-09-07 11:14:30 +02:00
Raul Santos
48c66b80ad
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-03 19:03:31 +02:00
Raul Santos
415529400b
Fix constant tag documentation in C# bindings generator
2021-09-03 18:54:40 +02:00
Raul Santos
5508d4606b
Fix PackedInt64Array typo in bindings_generator.h
2021-09-03 18:54:40 +02:00
Aaron Franke
1933df0013
Some more C# formatting
2021-09-02 15:12:15 -05:00
George Marques
25ae279317
Merge pull request #52270 from KoBeWi/goodbye_polar
...
Remove cartesian2polar and polar2cartesian
2021-09-01 09:33:13 -03:00
George Marques
cf59028972
Merge pull request #48237 from KoBeWi/they_came_from_angle
...
Add Vector2.from_angle() method
2021-09-01 09:32:42 -03:00
Hugo Locurcio
fc0bfbb33b
Remove #ifdefs
for handling compilation with Visual Studio < 2015
...
Godot 3.3 and later require Visual Studio 2017 to be compiled.
2021-08-31 20:04:17 +02:00
kobewi
3f3739ccb5
Add Vector2.from_angle() method
2021-08-31 01:53:58 +02:00
Juan Linietsky
bcd73fc00a
Merge pull request #52240 from Rubonnek/rename-rel-path
...
Rename `String::is_rel_path` to `String::is_relative_path`
2021-08-30 20:45:45 -03:00
kobewi
017c94222e
Remove cartesian2polar and polar2cartesian
2021-08-31 01:41:41 +02:00
Paulb23
cf36fb405c
syntax highlight c# verbatim string literal
2021-08-30 11:38:03 +01:00
Wilson E. Alvarez
d11c1afc04
Rename String::is_rel_path to String::is_relative_path
2021-08-29 20:41:29 -04:00
Fabio Alessandrelli
64b9f30b92
[Net] Rename RPC "puppet" to "auth" (authority). Drop "master".
...
This commit completely removes the RPC_MODE_MASTER ("master" keyword),
and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword).
This commit also renames the "Node.[get|set]_network_master" methods to
"Node.[get|set]_network_authority".
This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY.
RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by
any puppet peer on the master, while RPC_MODE_PUPPET meant that it would
be callable by the master on any puppet.
Beside proving to be very confusing to the user (referring to where it
could be called instead of who can call it) the RPC_MODE_MASTER is quite
useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with
the exception that the network master cannot. While this could be useful
to check in some case, in such a function you would anyway need to check
in code who is the caller via get_rpc_sender_id(), so adding the check
there for those rare cases does not warrants a dedicated mode.
2021-08-30 00:54:38 +02:00
Lyuma
31f790299c
Use OrderedHashMap for autoloads to preserve order
2021-08-26 21:55:26 -07:00
Max Hilbrunner
ee4a8e6a85
Merge pull request #52087 from raulsntos/expose-simplify-path
...
Expose `String.SimplifyPath` in C#
2021-08-25 18:37:08 +02:00
Raul Santos
126b1ea149
Expose String.SimplifyPath
in C#
2021-08-25 16:51:14 +02:00
Raul Santos
4e6e6bcd2f
Rename String.IsAbsPath()
to String.IsAbsolutePath()
2021-08-25 03:02:55 +02:00
Ignacio Roldán Etcheverry
e95fa21b45
Merge pull request #47295 from omegachysis/script-bind-mutex
...
Fix race condition on `script_binding` in C#
2021-08-24 06:09:43 +02:00
Raul Santos
f6a700e264
Rename C# string extensions to follow GDScript
...
Follow up to d9d77291bc
.
Renames `String.Extension` -> `String.GetExtension()` and
`String.BaseName()` -> `String.GetBaseName()`.
This makes those methods more consistent with GDScript and with
the `GetBaseDir` method.
2021-08-20 13:52:57 +02:00
Ignacio Roldán Etcheverry
d2c3a86844
C#: Fix bindings generator for Callable argument default value
...
Previously there weren't any Callable arguments with a default value,
but d4dd859991
introduced one.
2021-08-20 11:18:04 +02:00
Max Hilbrunner
81f7d1890b
Namespaces instead of underscore prefix for binds
...
Thanks to neikeq for the initial work.
Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
2021-08-17 16:10:09 +02:00
Rémi Verschelde
cfdac0973c
Merge pull request #51698 from Paulb23/text-editor-settings
...
Reorganise text editor settings
2021-08-16 18:48:58 +02:00
Paulb23
bcfc591f86
Reorganise text editor settings
2021-08-16 17:18:49 +01:00
Ignacio Roldán Etcheverry
5ea500e599
Fix C# native instance bindings after recent re-write
...
This was needed after: 4469144891
2021-08-16 17:16:36 +02:00
Aaron Franke
03e2544d50
Use real_t and double where appropriate in Particles
2021-08-12 11:35:31 -05:00
Raul Santos
f20db58271
Ensure MSBuildPanel buttons are instantiated
2021-08-06 22:30:38 +02:00
Rémi Verschelde
ba0982c51c
Merge pull request #51008 from raulsntos/csharp-renames
2021-08-06 09:07:02 +02:00
Raul Santos
2deefd938f
Reduce C# Dictionary internal calls
...
- Implements new `KeyValuePairs` and `KeyValuePairAt` internal calls
to get the `key` and the `value` in one call.
- Caches the `DictionaryEntry` to reuse properties without repeating
internal calls.
2021-08-05 17:30:28 +02:00
Raul Santos
0669ffcd15
Add documentation to Dictionary in C#
...
Adds documentation to `Godot.Collections.Dictionary` in C#.
2021-08-05 17:30:27 +02:00
Raul Santos
d2655cb131
Rename RotationQuaternion to be more similar to get_rotation_quaternion
...
Renames `RotationQuaternion` to be more consistent with `get_rotation_quaternion`
2021-08-05 17:29:55 +02:00
Raul Santos
5330c83690
Rename RandSeed to RandFromSeed and use ref param
...
Renames `RandSeed` method to be more consistent with `Math::rand_from_seed`
2021-08-05 17:29:55 +02:00
31
6fd2edddc0
Fix 'script_class' null access when reloading a deleted C# script
2021-08-03 22:43:42 -05:00
Raul Santos
ad460cde79
Simplify C# print methods
...
- Extracts the parameters logic to a single method
- Simplify the handling of null parameters
2021-08-03 23:12:27 +02:00
Yuri Sizov
d3e413c659
Fix the editor theme application for the Mono build log
2021-08-03 22:13:32 +03:00
Aaron Franke
2733b9abd8
Remove obsolete "dectime" method
...
Replaced by "move_toward"
2021-07-30 16:41:28 -05:00
Rémi Verschelde
bdcc8741e4
Merge pull request #51009 from raulsntos/fix-csharp-split
...
Use `allowEmpty` parameter in Split
2021-07-29 23:04:39 +02:00
Raul Santos
37d8f8c92b
Use C# interpolated strings
...
Uses interpolated strings wherever possible.
String concatenations are still left where used for breaking long lines.
2021-07-29 17:20:44 +02:00
Raul Santos
b7a66a820b
Use allowEmpty
parameter in Split
2021-07-29 12:57:35 +02:00
Rémi Verschelde
7cbdb9b4c3
Merge pull request #50917 from raulsntos/more-iterators
2021-07-27 08:05:15 +02:00
Raul Santos
d636ebbfe9
Ignore paths with invalid chars in PathWhich
2021-07-27 04:16:20 +02:00
Raul Santos
3fe67fb5ad
Use C++ iterators in the Mono module
2021-07-27 02:48:28 +02:00
Rémi Verschelde
92299989bd
Use Ref<T> references as iterators where relevant
...
And const when possible.
2021-07-26 19:27:11 +02:00
Ignacio Roldán Etcheverry
0c68ccecda
Merge pull request #50867 from aaronfranke/cs-array-empty
...
Add documentation to Array in C#
2021-07-26 04:46:35 +02:00
Raul Santos
accd05f4ad
Use Array.Empty instead of allocating a every time
...
Use `System.Array.Empty<T>` to get an empty array instead of allocating
a new one every time. Since arrays are immutable there is no need to
allocate them every time.
2021-07-26 03:52:31 +02:00
Aaron Franke
080f44a3b7
Add documentation to Array in C#
2021-07-25 18:04:18 -04:00