Aetheria/Assets/Plugins/MSAGL/Layout/Incremental/FiEdge.cs
Reinier Vens dbc522a224 Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged
Added machine gun weapon & VFX
Moved third party code to Plugins folder to improve compile times
2021-01-31 03:52:32 +00:00

37 lines
No EOL
962 B
C#

using Microsoft.Msagl.Core.Geometry;
using Microsoft.Msagl.Core.GraphAlgorithms;
using Microsoft.Msagl.Core.Layout;
namespace Microsoft.Msagl.Layout.Incremental {
/// <summary>
/// An edge is a pair of nodes and an ideal length required between them
/// </summary>
internal class FiEdge : IEdge {
internal Edge mEdge;
public FiNode source;
public FiNode target;
public FiEdge(Edge mEdge) {
this.mEdge = mEdge;
source = (FiNode) mEdge.Source.AlgorithmData;
target = (FiNode) mEdge.Target.AlgorithmData;
}
#region IEdge Members
public int Source {
get { return source.index; }
set { }
}
public int Target {
get { return target.index; }
set { }
}
#endregion
internal Point vector() {
return source.mNode.Center - target.mNode.Center;
}
}
}