summaryrefslogtreecommitdiff
path: root/modules/mono/glue/GodotSharp
AgeCommit message (Collapse)Author
2023-01-27C#: Remove obsolete StringExtensions methodsRaul Santos
2023-01-27Merge pull request #71943 from paulloz/debugger/better-errors-printingRémi Verschelde
Better error display in debugger panel
2023-01-27Better error display in debugger panelPaul Joannon
- Use the right stack frame info as title of the error. - Use the actual C# exception type as error for exceptions raised from C#. - Show the right language instead of always **C++ Error**.
2023-01-27C#: Rename `Object` to `GodotObject`Raul Santos
2023-01-27C#: Renames to follow .NET naming conventionsRaul Santos
Renamed C# types and members to use PascalCase and follow .NET naming conventions.
2023-01-27Merge pull request #71825 from RedworkDE/net6-roll-forwardRémi Verschelde
C#: Allow use of .NET 7
2023-01-27Merge pull request #71356 from raulsntos/dotnet/getRémi Verschelde
C#: Lookup signals and methods in Get method
2023-01-26Merge pull request #71984 from raulsntos/dotnet/dictionaryRémi Verschelde
Sync C# Dictionary with Core
2023-01-26Merge pull request #71946 from raulsntos/dotnet/gdRémi Verschelde
C#: Sync GD with Core
2023-01-26Merge pull request #71583 from raulsntos/dotnet/mathRémi Verschelde
C#: Add float an double overloads to Mathf
2023-01-26Merge pull request #71787 from raulsntos/dotnet/restore-propertiesRémi Verschelde
C#: Restore `Scale` and `Rotation` properties
2023-01-26Merge pull request #71988 from raulsntos/🦭-attributesRémi Verschelde
Seal C# attributes
2023-01-26Merge pull request #72053 from raulsntos/dotnet/sync-context-disposeRémi Verschelde
C#: Implement disposable pattern and seal `GodotSynchronizationContext` class and related
2023-01-25C#: Annotate API with MustBeVariantRaul Santos
- Add MustBeVariant attribute to generic parameters that are used in a Variant context
2023-01-25C#: Implement disposable pattern and seal `GodotSynchronizationContext` ↵Raul Santos
class and related - `GodotSynchronizationContext` - Implements `IDisposable` to dispose of the disposable field `_queue`. - Makes the class sealed. - `GodotTaskScheduler` - Implements `IDisposable` to dispose of the disposable property `Context`. - Makes the class sealed. - `Dispatcher` - Dispose of previous `GodotTaskScheduler` instances before creating a new one.
2023-01-24C#: Sync GD with CoreRaul Santos
- Add overloads to print methods that take a single `string`. - Use `StringBuilder` to append print parameters. - Remove `PrintStack` method. - Add `ErrorString`. - Remove `Str` method. - Add exception to `Range` when step is 0. - Add `VarToBytesWithObjects` and `BytesToVarWithObjects`. - Remove optional boolean parameter from `VarToBytes` and `BytesToVar`. - Move `InstanceFromId` to `Godot.Object`. - Add `Godot.Object.IsInstanceIdValid`. - Update documentation.
2023-01-24Seal C# attributesRaul Santos
2023-01-24Sync C# Dictionary with CoreRaul Santos
- Implement `ICollection` methods explicitly. - Add `Merge` method. - Add `RecursiveEqual` method. - Update documentation.
2023-01-24C#: Add float an double overloads to MathfRaul Santos
- Add `float` and `double` overloads to all methods of `Mathf`. This allows the methods to be usable with `float`, `double` or `real_t`. - Use `System.MathF` in the `float` overloads which may result in better performance. - Constants remain as `real_t` for the time being. - Add aggresive inlining for methods that wrap `System.Math` calls.
2023-01-23C#: Move `LinearToDb` and `DbToLinear` to MathfRaul Santos
2023-01-23Convert en_GB spelling to en_US with codespellRémi Verschelde
2023-01-21C#: Allow use of .NET 7RedworkDE
The editor will use .NET 7 if it is installed and fall back to .NET 6 otherwise. Exported projects will use .NET 7 or .NET 6 depending on the value of TargetFramework in the csproj.
2023-01-21C#: Restore `Scale` and `Rotation` propertiesRaul Santos
2023-01-17Sync C# vectors with CoreRaul Santos
- Remove `Vector2.Lerp` overload that takes a weight parameter of type `Vector2`. - Remove `Vector3.Lerp` overload that takes a weight parameter of type `Vector3`. - Remove `Color.Lerp` overload that takes a weight parameter of type `Color`. - Remove `Angle` method from `Vector2i`. - Remove `AngleTo` method from `Vector2i`. - Remove `AngleToPoint` method from `Vector2i`. - Remove `Cross` method from `Vector2i`. - Remove `DistanceSquaredTo` method from `Vector2i` and `Vector3i`. - Remove `DistanceTo` method from `Vector2i` and `Vector3i`. - Remove `Dot` method from `Vector2i` and `Vector3i`. - Remove `PosMod` method from `Vector2i` and `Vector3i`. - Remove `Orthogonal` method from `Vector2i`. - Remove `&` operator from `Vector2i` and `Vector3i`.
2023-01-16C#: Implement `Mathf.SinCos`Raul Santos
Implement `Mathf.SinCos` that wraps a call to `System.Math.SinCos`, this allows us to use the `SinCos` method more conveniently with `real_t`. Using `Math.SinCos` is often cheaper than separate calls to `Math.Sin` and `Math.Cos`, and they are often used together.
2023-01-16Merge pull request #71458 from raulsntos/dotnet/quaternionRémi Verschelde
C#: Make `Length` and `LengthSquared` into methods in `Quaternion`.
2023-01-16Merge pull request #71456 from raulsntos/dotnet/sync-planeRémi Verschelde
C#: Sync `Plane` with Core
2023-01-16Merge pull request #71445 from raulsntos/dotnet/transformsRémi Verschelde
C#: Add missing `Transform{2D,3D}` and `Basis` constructors
2023-01-15C#: Sync `Plane` with CoreRaul Santos
- Add `Plane(Vector3)` constructor. - Rename `IntersectRay` to `IntersectsRay`. - Rename `IntersectSegment` to `IntersectsSegment`. - Replace `Center` property with `GetCenter` method. - Add and fix documentation about the _normal_ parameter to Core and C# documentation.
2023-01-15C#: Add missing `Transform{2D,3D}` and `Basis` constructorsRaul Santos
- Remove `Transform3D(Quaternion, Vector3)` constructor from C#. - Add `Transform3D(Projection)` constructor to C#. - Add documentation to the `Transform3D(Projection)` constructor in Core. - Add `Transform3D` constructor with only real_t params to C# that mirrors `Transform2D`. - Expose `Basis` constructor with only real_t params in C#. - Add `Transform2D(real_t, Vector2, real_t, Vector2)` constructor to C#.
2023-01-15C#: Replace `Rotation` and `Scale` properties with get methodsRaul Santos
- Replace `Rotation` property with `GetRotation` method in `Transform2D`. - Replace `Scale` property with `GetScale` method in `Transform2D`. - Replace `Scale` property with `GetScale` method in `Basis`. Core does not expose set methods.
2023-01-15C#: Make `Length` and `LengthSquared` into methods in `Quaternion`.Raul Santos
The `Length` and `LengthSquared` members are implemented as methods in every other C# struct, `Quaternion` was the only one implementing them as properties.
2023-01-15Merge pull request #71374 from ↵Rémi Verschelde
raulsntos/dotnet/remove-spherical_interpolate_with C#: Remove `SphericalInterpolateWith` from Transform3D
2023-01-15Merge pull request #71423 from ↵Rémi Verschelde
raulsntos/dotnet/intersects-without-include_borders C#: Remove `includeBorders` parameter from `Rect2i.Intersects` and `AABB.Intersects`
2023-01-14C#: Sync `Basis` with CoreRaul Santos
- Remove `GetOrthogonalIndex` method (moved to `GridMap`). - Remove `GetRow` and `SetRow` methods.
2023-01-14C#: Remove `includeBorders` parameter from `Rect2i.Intersects` and ↵Raul Santos
`AABB.Intersects`
2023-01-14C#: Remove `SphericalInterpolateWith` from Transform3DRaul Santos
2023-01-13C#: Lookup signals and methods in Get methodRaul Santos
Allows to retrieve `Callable`s and `Signal`s using `Get` like it works in GDScript.
2023-01-13Merge pull request #71339 from raulsntos/dotnet/is_finiteYuri Sizov
Add `IsFinite` to C# Variants
2023-01-13Add `IsZeroApprox` to C# vectorsRaul Santos
2023-01-13Add `IsFinite` to C# VariantsRaul Santos
2023-01-11Improve description of `GetNodeOrDefault` in C# APIGuillermo
Indenting with spaces and added a line break Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-06Merge pull request #70547 from TokageItLab/pingpong-wrapRémi Verschelde
Fix pingpong-loop with `loop_wrap` is not working & clean-up cubic interpolation key retrieve process
2022-12-30Merge pull request #70511 from raulsntos/dotnet/fix-update-script-class-infoIgnacio Roldán Etcheverry
C#: Skip getting class info for unbound generics
2022-12-28C#: Avoid generic types in the script path attribute generatorRaul Santos
- Avoid generic types in `ScriptPathAttributeGenerator`, this means they won't be added to the `[AssemblyHasScripts]` attribute and a `[ScriptPath]` attribute won't be added to the class. Since generic classes can't be used as scripts they shouldn't use those attributes, this also makes CSharpScript consider those types invalid since they won't be added to the script/type map. - Avoid generic types in `ScriptManagerBridge.LookupScriptsInAssembly`. - Set `outMethodsDest` in `ScriptManagerBridge.UpdateScriptClassInfo`.
2022-12-25Fix pingpong with loop wrap is not workingSilc Renew
2022-12-24Merge pull request #70509 from irwiss/reverse-Vector2.AngleToPointIgnacio Roldán Etcheverry
C#: reverse Vector2.AngleToPoint
2022-12-24C#: reverse Vector2.AngleToPointAlexey Kim
2022-12-23C#: Fix leak in Span to Variant conversionsIgnacio Roldán Etcheverry
2022-12-23C#: Rename `ConvertToX` methodsRaul Santos
- Renamed `ConvertToX` to `ConvertToNativeX`. - Renamed `ConvertToXObject` to `ConvertToX`. - Renamed `ConvertToXManaged` to `ConvertToX`. - Fix `Signal` name in bindings generator and csharp script.