Files
MovementTests/addons/forge/resources/magnitudes/ForgeScalableFloat.cs
Minimata c4be97e0de
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 21s
Create tag and build when new code gets to main / Test (push) Successful in 6m56s
Create tag and build when new code gets to main / Export (push) Successful in 9m3s
added forge addon
2026-02-08 15:16:01 +01:00

35 lines
662 B
C#

// Copyright © Gamesmiths Guild.
using Gamesmiths.Forge.Effects.Magnitudes;
using Gamesmiths.Forge.Godot.Core;
using Godot;
namespace Gamesmiths.Forge.Godot.Resources.Magnitudes;
[Tool]
[GlobalClass]
[Icon("uid://dvlaw4yolashm")]
public partial class ForgeScalableFloat : Resource
{
[Export]
public float BaseValue { get; set; }
[Export]
public Curve? ScalingCurve { get; set; }
public ForgeScalableFloat()
{
// Constructor intentionally left blank.
}
public ForgeScalableFloat(float baseValue)
{
BaseValue = baseValue;
}
public ScalableFloat GetScalableFloat()
{
return new ScalableFloat(BaseValue, new ForgeCurve(ScalingCurve));
}
}