25 lines
605 B
C#
25 lines
605 B
C#
namespace Lib.numbers.vec2;
|
|
|
|
[Guid("d1a66374-f0e8-4ef5-adf4-2871ec549d2a")]
|
|
internal sealed class Int2ToVector2 : Instance<Int2ToVector2>
|
|
{
|
|
[Output(Guid = "ea84de7c-7381-4689-90c2-586308d3b15d")]
|
|
public readonly Slot<Vector2> Result = new();
|
|
|
|
|
|
public Int2ToVector2()
|
|
{
|
|
Result.UpdateAction += Update;
|
|
}
|
|
|
|
private void Update(EvaluationContext context)
|
|
{
|
|
var s = Int2.GetValue(context);
|
|
Result.Value = s;
|
|
}
|
|
|
|
[Input(Guid = "5C493D16-CC75-4CD5-96D9-ECA3ADEACCD9")]
|
|
public readonly InputSlot<Int2> Int2 = new();
|
|
|
|
|
|
} |