update forge
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 27s
Create tag and build when new code gets to main / Export (push) Successful in 7m25s

This commit is contained in:
2026-05-17 00:06:44 +02:00
parent 8b54f00814
commit e09714cf83
473 changed files with 13577 additions and 767 deletions

View File

@@ -0,0 +1,47 @@
// Copyright © Gamesmiths Guild.
#if TOOLS
using System;
using Gamesmiths.Forge.Godot.Editor.Statescript.Resolvers.Bases;
using Gamesmiths.Forge.Godot.Resources.Statescript.Resolvers;
using Godot;
using ForgeVariant128 = Gamesmiths.Forge.Statescript.Variant128;
using SysVector2 = System.Numerics.Vector2;
using SysVector3 = System.Numerics.Vector3;
using SysVector4 = System.Numerics.Vector4;
namespace Gamesmiths.Forge.Godot.Editor.Statescript.Resolvers;
[Tool]
internal sealed partial class ClampMagnitudeResolverEditor
: AsymmetricBinaryNestedResolverEditorBase<ClampMagnitudeResolverResource>
{
public override string DisplayName => "Clamp Magnitude";
public override string ResolverTypeId => "ClampMagnitude";
protected override Type[] LeftFactoryExpectedTypes => [typeof(SysVector2), typeof(SysVector3), typeof(SysVector4)];
protected override Type[] RightFactoryExpectedTypes => ResolverEditorCompatibility.FloatOperandExpectedTypes;
protected override Type LeftNestedExpectedType => typeof(ForgeVariant128);
protected override Type RightNestedExpectedType => typeof(float);
protected override string LeftTitle => "Value:";
protected override string RightTitle => "Max Length:";
public override bool IsCompatibleWith(Type expectedType)
{
return expectedType == typeof(ForgeVariant128) || ResolverEditorCompatibility.IsVectorType(expectedType);
}
protected override Type[] GetLeftFactoryExpectedTypes(Type expectedType)
{
return expectedType == typeof(ForgeVariant128)
? [typeof(SysVector2), typeof(SysVector3), typeof(SysVector4)]
: [expectedType];
}
}
#endif