Aetheria/Assets/Plugins/MSAGL/Routing/Spline/ConeSpanner/ObstacleSide.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

41 lines
1.2 KiB
C#

using Microsoft.Msagl.Core.Geometry;
using Microsoft.Msagl.Core.Geometry.Curves;
using Microsoft.Msagl.Routing.Visibility;
namespace Microsoft.Msagl.Routing.Spline.ConeSpanner
{
internal abstract class ObstacleSide : SegmentBase
{
internal PolylinePoint StartVertex { get; private set; }
internal ObstacleSide(PolylinePoint startVertex)
{
StartVertex = startVertex;
}
internal abstract PolylinePoint EndVertex { get; }
internal Polyline Polyline { get { return StartVertex.Polyline; } }
internal override Point Start
{
get { return StartVertex.Point; }
}
internal override Point End
{
get { return EndVertex.Point; }
}
/// <summary>
/// </summary>
/// <returns></returns>
public override string ToString() {
string typeString = this.GetType().ToString();
int lastDotLoc = typeString.LastIndexOf('.');
if (lastDotLoc >= 0) {
typeString = typeString.Substring(lastDotLoc + 1);
}
return typeString + " [" + this.Start.ToString() + " -> " + this.End.ToString() + "]";
}
}
}