Files
MovementTests/addons/forge/resources/statescript/StatescriptConnection.cs
Minimata 1d856fd937
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 26s
Create tag and build when new code gets to main / Export (push) Successful in 5m42s
Replicated the weapon flying tick setup using resources
2026-04-07 16:32:26 +02:00

37 lines
786 B
C#

// Copyright © Gamesmiths Guild.
using Godot;
namespace Gamesmiths.Forge.Godot.Resources.Statescript;
/// <summary>
/// Represents a connection between two nodes in the Statescript graph.
/// </summary>
[Tool]
public partial class StatescriptConnection : Resource
{
/// <summary>
/// Gets or sets the source node id.
/// </summary>
[Export]
public string FromNode { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the source port index.
/// </summary>
[Export]
public int OutputPort { get; set; }
/// <summary>
/// Gets or sets the destination node id.
/// </summary>
[Export]
public string ToNode { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the destination port index.
/// </summary>
[Export]
public int InputPort { get; set; }
}