Aetheria/Assets/Plugins/MSAGL/Layout/Layered/NetworkEdge.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

26 lines
688 B
C#

using System;
using Microsoft.Msagl.Core.GraphAlgorithms;
namespace Microsoft.Msagl.Layout.Layered {
/// <summary>
/// Differs from IntEdge in containing a flag indicating belonging to the tree
/// and containing the cut value
/// </summary>
internal class NetworkEdge : IntEdge {
internal const int Infinity = Int32.MaxValue;
internal NetworkEdge(IntEdge e)
: base(e.Source, e.Target) {
Weight = e.Weight;
Separation = e.Separation;
}
internal bool inTree;
int cut = Infinity;
internal int Cut {
get { return cut; }
set { cut = value; }
}
}
}