Replicated the weapon flying tick setup using resources
This commit is contained in:
36
addons/forge/resources/statescript/StatescriptConnection.cs
Normal file
36
addons/forge/resources/statescript/StatescriptConnection.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user