summaryrefslogtreecommitdiff
path: root/modules/mono/glue
AgeCommit message (Collapse)Author
2021-09-21Merge pull request #52878 from AnilBK/add-get-centerRémi Verschelde
2021-09-21Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra
2021-09-18Fix some minor issues in C# XML doc commentsAaron Franke
2021-09-18Merge pull request #52666 from magian1127/temp1Rémi Verschelde
2021-09-18C#, replace the current Xform method with a * operator.Magian
2021-09-13Revert some URLs from the "Replace HTTP URLs with HTTPS" PRAaron Franke
2021-09-03Add documentation to GodotSharpRaul Santos
- Adds documentation to almost every class and member in `GodotSharp` - Fixes some old documentation to more closely follow the XML comments convention
2021-09-02Some more C# formattingAaron Franke
2021-09-01Merge pull request #52270 from KoBeWi/goodbye_polarGeorge Marques
Remove cartesian2polar and polar2cartesian
2021-09-01Merge pull request #48237 from KoBeWi/they_came_from_angleGeorge Marques
Add Vector2.from_angle() method
2021-08-31Add Vector2.from_angle() methodkobewi
2021-08-30Merge pull request #52240 from Rubonnek/rename-rel-pathJuan Linietsky
Rename `String::is_rel_path` to `String::is_relative_path`
2021-08-31Remove cartesian2polar and polar2cartesiankobewi
2021-08-29Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez
2021-08-30[Net] Rename RPC "puppet" to "auth" (authority). Drop "master".Fabio Alessandrelli
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-25Merge pull request #52087 from raulsntos/expose-simplify-pathMax Hilbrunner
Expose `String.SimplifyPath` in C#
2021-08-25Expose `String.SimplifyPath` in C#Raul Santos
2021-08-25Rename `String.IsAbsPath()` to `String.IsAbsolutePath()`Raul Santos
2021-08-20Rename C# string extensions to follow GDScriptRaul Santos
Follow up to d9d77291bca8dd1e87aa4d9e40de96d99e5ef1f6. 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-16Fix C# native instance bindings after recent re-writeIgnacio Roldán Etcheverry
This was needed after: 44691448911f1d29d4d79dbdd5553734761e57c4
2021-08-06Merge pull request #51008 from raulsntos/csharp-renamesRémi Verschelde
2021-08-05Reduce C# Dictionary internal callsRaul Santos
- 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-05Add documentation to Dictionary in C#Raul Santos
Adds documentation to `Godot.Collections.Dictionary` in C#.
2021-08-05Rename RotationQuaternion to be more similar to get_rotation_quaternionRaul Santos
Renames `RotationQuaternion` to be more consistent with `get_rotation_quaternion`
2021-08-05Rename RandSeed to RandFromSeed and use ref paramRaul Santos
Renames `RandSeed` method to be more consistent with `Math::rand_from_seed`
2021-08-03Simplify C# print methodsRaul Santos
- Extracts the parameters logic to a single method - Simplify the handling of null parameters
2021-07-30Remove obsolete "dectime" methodAaron Franke
Replaced by "move_toward"
2021-07-29Merge pull request #51009 from raulsntos/fix-csharp-splitRémi Verschelde
Use `allowEmpty` parameter in Split
2021-07-29Use C# interpolated stringsRaul Santos
Uses interpolated strings wherever possible. String concatenations are still left where used for breaking long lines.
2021-07-29Use `allowEmpty` parameter in SplitRaul Santos
2021-07-25Add documentation to Array in C#Aaron Franke
2021-07-25Use const references where possible for List range iteratorsRémi Verschelde
2021-07-24Fix documentation in StringExtensionsRaul Santos
2021-07-24Merge pull request #50757 from aaronfranke/simple-cs-editorconfigIgnacio Roldán Etcheverry
Add a simple C# `.editorconfig`
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-23Add a simple C# .editorconfigAaron Franke
2021-07-20[Net] Single `rpc` annotation. "sync" no longer part of mode.Fabio Alessandrelli
- Move the "sync" property for RPCs to RPCConfig. - Unify GDScript annotations into a single one: - `@rpc(master)` # default - `@rpc(puppet)` - `@rpc(any)` # former `@remote` - Implement three additional `@rpc` options: - The second parameter is the "sync" option (which also calls the function locally when RPCing). One of "sync", "nosync". - The third parameter is the transfer mode (reliable, unreliable, ordered). - The third parameter is the channel (unused for now).
2021-07-08Redo how instance bindings workreduz
* The harcoded 8 slots are no more and impose limits in the new extension system. * New system is limitless, although it will impose small performance hit with a mutex. * Use a token to request the instance binding. **Warning**: Mono will most likely break as a result of this, will need to be modified to use the new system.
2021-06-23Fixing mono build after instance() -> instanciate() name changeGrzegorz Puławski
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-17Add Quaternion angle_to methodAaron Franke
2021-06-13Merge pull request #34668 from aaronfranke/to-stringRémi Verschelde
[Core] Reformat structure string operators
2021-06-13Improve & fix Mono buildPedro J. Estébanez
- Fix C++ compile errors about pending variable renames after the `Reference` to `RefCount` change. - Fix C# compile errors due to the recent rename of `EnablePlugin()` and `Build()`, which are now underscore-prefixed in bindings. - Additional rename: `godot_icall_Reference_Dtor` to `godot_icall_RefCounted_Dtor`.
2021-06-11Rename Reference to RefCountedPedro J. Estébanez
2021-06-11Reformat structure string operatorsAaron Franke
The order of numbers is not changed except for Transform2D. All logic is done inside of their structures (and not in Variant). For the number of decimals printed, they now use String::num_real which works best with real_t, except for Color which is fixed at 4 decimals (this is a reliable number of float digits when converting from 16-bpc so it seems like a good choice)
2021-06-07Style: Cleanup uses of double spaces between wordsRémi Verschelde
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
2021-06-04Rename Quat to QuaternionMarcel Admiraal
2021-06-03Merge pull request #38430 from aaronfranke/transform3dRémi Verschelde
2021-06-03Allow clamping vectors and colorsAaron Franke
2021-06-03Rename Vector2 clamped to limit_length and add limit_length to Vector3Aaron Franke