summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
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-20C#: Fix bindings generator for Callable argument default valueIgnacio Roldán Etcheverry
Previously there weren't any Callable arguments with a default value, but d4dd859991205e6cecfa9a0553b89db47c983d0b introduced one.
2021-08-17Namespaces instead of underscore prefix for bindsMax Hilbrunner
Thanks to neikeq for the initial work. Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
2021-08-16Merge pull request #51698 from Paulb23/text-editor-settingsRémi Verschelde
Reorganise text editor settings
2021-08-16Reorganise text editor settingsPaulb23
2021-08-16Fix C# native instance bindings after recent re-writeIgnacio Roldán Etcheverry
This was needed after: 44691448911f1d29d4d79dbdd5553734761e57c4
2021-08-12Use real_t and double where appropriate in ParticlesAaron Franke
2021-08-06Ensure MSBuildPanel buttons are instantiatedRaul Santos
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-03Fix 'script_class' null access when reloading a deleted C# script31
2021-08-03Simplify C# print methodsRaul Santos
- Extracts the parameters logic to a single method - Simplify the handling of null parameters
2021-08-03Fix the editor theme application for the Mono build logYuri Sizov
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-27Merge pull request #50917 from raulsntos/more-iteratorsRémi Verschelde
2021-07-27Ignore paths with invalid chars in PathWhichRaul Santos
2021-07-27Use C++ iterators in the Mono moduleRaul Santos
2021-07-26Use Ref<T> references as iterators where relevantRémi Verschelde
And const when possible.
2021-07-26Merge pull request #50867 from aaronfranke/cs-array-emptyIgnacio Roldán Etcheverry
Add documentation to Array in C#
2021-07-26Use Array.Empty instead of allocating a every timeRaul Santos
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-25Add documentation to Array in C#Aaron Franke
2021-07-25Fix bindings generator range iterator errorsRaul Santos
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-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
2021-07-15Mono: Remove info dialog discouraging use in productionRémi Verschelde
While there are still various bugs to solve and features to implement, the C# support as of Godot 3.4 is fairly mature and already used by a number of users in production. Now that we default to dotnet CLI as build tool, it also seems to be more reliable than MSBuild. The documentation can (and does for the most part) point out some caveats that users should be aware of, but this info dialog has outlived its intended purpose.
2021-07-13Implement the ability to disable classesreduz
* This PR adds the ability to disable classes when building. * For now it's only possible to do this via command like: `scons disable_classes=RayCast2D,Area3D` * Eventually, a proper UI will be implemented to create a build config file to do this at large scale, as well as detect what is used in the project.
2021-07-12[Net] Rename NetworkedMultiplayerPeer to MultiplayerPeer.Fabio Alessandrelli
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-07-01Remove unused code related to Travis CIHugo Locurcio
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-20Merge pull request #48804 from EricEzaM/scripting-multi-error-supportRémi Verschelde
Added support for scripts reporting multiple errors to ScriptTextEditor
2021-06-19Added support for scripts reporting multiple errors to ScriptTextEditorEric M
Scripts can now report multiple errors to the scripting editors in the engine. UI elements were added to support multiple errors.
2021-06-19Consolidate JSON, JSONParseResults and JSONParser into JSONMarcel Admiraal
Renames JSON.parse_string() to parse() Renames JSON.decode_data() to stringify()
2021-06-18Merge pull request #44156 from aaronfranke/quat-angle-toRémi Verschelde
Add Quaternion angle_to method
2021-06-18Fix a typo in C# bindings generator for default value typesAaron Franke
2021-06-17Add Quaternion angle_to methodAaron Franke
2021-06-13Fix slow load/save of scenes with many instances of the same scriptPedro J. Estébanez
2021-06-13Merge pull request #34668 from aaronfranke/to-stringRémi Verschelde
[Core] Reformat structure string operators