Aetheria/Assets/Plugins/MSAGL/Miscellaneous/LayoutEditing/WeightedEdge.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

40 lines
973 B
C#

using Microsoft.Msagl.Core.GraphAlgorithms;
namespace Microsoft.Msagl.Prototype.LayoutEditing {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses")]
internal class WeightedEdge : IEdge {
int source;
/// <summary>
/// source
/// </summary>
public int Source {
get { return source; }
set { source = value; }
}
int target;
/// <summary>
/// source
/// </summary>
public int Target {
get { return target; }
set { target = value; }
}
double weight;
internal double Weight {
get { return weight; }
set { weight = value; }
}
internal WeightedEdge(int source, int target, double weight) {
Source = source;
Target = target;
Weight = weight;
}
}
}