Split project

This commit is contained in:
h z
2024-06-29 06:35:23 +08:00
parent b26404abd2
commit 117835b503
45 changed files with 1972 additions and 26 deletions

24
Cables/BaseCable.cs Normal file
View File

@@ -0,0 +1,24 @@
using Godot;
using Nocturnis.Enigmos.Cables;
using Nocturnis.Enigmos.Ports;
namespace Enigmos.Cables;
public abstract partial class BaseCable : Line2D, IBaseCable
{
protected Line2D InFill { get; set; }
public IBasePort PortFrom { get; set; }
public IBasePort PortTo { get; set; }
public void Init()
{
InFill = GetNode<Line2D>("InFill");
}
/// <summary>
/// Update points of line
/// </summary>
public abstract void LineUpdate();
public Node AsNode => this;
}