summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2023-10-03 19:30:57 +0200
committerRaul Santos <raulsntos@gmail.com>2023-10-03 19:34:39 +0200
commit1dbecc3ff10bc7a2bb0398d7a9a0bd68c4b79c7a (patch)
tree2f1b822cfd2d5b58f321cabc524424a859a61a93
parentf5696c311cdb09e0a34fa4ba7ef5d2524c515b89 (diff)
downloadredot-engine-1dbecc3ff10bc7a2bb0398d7a9a0bd68c4b79c7a.tar.gz
Add C# compat members for 4.2 changes
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Compat.cs102
1 files changed, 101 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs b/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
index 48b47b166a..bf8b2f10dc 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
@@ -7,6 +7,8 @@ using System.ComponentModel;
namespace Godot;
+#pragma warning disable CS1734 // XML comment on 'X' has a paramref tag for 'Y', but there is no parameter by that name.
+
partial class AnimationNode
{
/// <inheritdoc cref="BlendInput(int, double, bool, bool, float, FilterAction, bool, bool)"/>
@@ -24,6 +26,44 @@ partial class AnimationNode
}
}
+partial class AnimationPlayer
+{
+ /// <inheritdoc cref="CallbackModeMethod"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public AnimationMethodCallMode MethodCallMode
+ {
+ get => (AnimationMethodCallMode)CallbackModeMethod;
+ set => CallbackModeMethod = (AnimationCallbackModeMethod)value;
+ }
+
+ /// <inheritdoc cref="Active"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool PlaybackActive
+ {
+ get => Active;
+ set => Active = value;
+ }
+
+ /// <inheritdoc cref="CallbackModeProcess"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public AnimationProcessCallback PlaybackProcessMode
+ {
+ get => (AnimationProcessCallback)CallbackModeProcess;
+ set => CallbackModeProcess = (AnimationCallbackModeProcess)value;
+ }
+}
+
+partial class AnimationTree
+{
+ /// <inheritdoc cref="CallbackModeProcess"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public AnimationProcessCallback ProcessCallback
+ {
+ get => (AnimationProcessCallback)CallbackModeProcess;
+ set => CallbackModeProcess = (AnimationCallbackModeProcess)value;
+ }
+}
+
partial class CodeEdit
{
/// <inheritdoc cref="AddCodeCompletionOption(CodeCompletionKind, string, string, Nullable{Color}, Resource, Nullable{Variant}, int)"/>
@@ -36,7 +76,7 @@ partial class CodeEdit
partial class Geometry3D
{
- /// <inheritdoc cref="SegmentIntersectsConvex(Vector3, Vector3, Collections.Array{Plane})"/>
+ /// <inheritdoc cref="SegmentIntersectsConvex(Vector3, Vector3, Godot.Collections.Array{Plane})"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public static Vector3[] SegmentIntersectsConvex(Vector3 from, Vector3 to, Godot.Collections.Array planes)
{
@@ -44,6 +84,51 @@ partial class Geometry3D
}
}
+partial class GraphEdit
+{
+ /// <inheritdoc cref="ShowArrangeButton"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool ArrangeNodesButtonHidden
+ {
+ get => !ShowArrangeButton;
+ set => ShowArrangeButton = !value;
+ }
+
+ /// <inheritdoc cref="GetMenuHBox()"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public HBoxContainer GetZoomHBox()
+ {
+ return GetMenuHBox();
+ }
+
+ /// <inheritdoc cref="SnappingDistance"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int SnapDistance
+ {
+ get => SnappingDistance;
+ set => SnappingDistance = value;
+ }
+
+ /// <inheritdoc cref="SnappingEnabled"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool UseSnap
+ {
+ get => SnappingEnabled;
+ set => SnappingEnabled = value;
+ }
+}
+
+partial class GraphNode
+{
+ /// <inheritdoc cref="DeleteRequest"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event Action CloseRequest
+ {
+ add => DeleteRequest += value;
+ remove => DeleteRequest -= value;
+ }
+}
+
partial class MeshInstance3D
{
/// <inheritdoc cref="CreateMultipleConvexCollisions(MeshConvexDecompositionSettings)"/>
@@ -108,6 +193,19 @@ partial class SurfaceTool
}
}
+partial class TileMap
+{
+ /// <summary>
+ /// The TileMap's quadrant size. Optimizes drawing by batching, using chunks of this size.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int CellQuadrantSize
+ {
+ get => RenderingQuadrantSize;
+ set => RenderingQuadrantSize = value;
+ }
+}
+
partial class Tree
{
/// <inheritdoc cref="EditSelected(bool)"/>
@@ -127,3 +225,5 @@ partial class UndoRedo
CreateAction(name, mergeMode, backwardUndoOps: false);
}
}
+
+#pragma warning restore CS1734