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
This commit is contained in:
parent
2a0fe34611
commit
dbc522a224
2105 changed files with 7033 additions and 1141 deletions
|
|
@ -1,38 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Msagl.Core.DataStructures;
|
||||
using Microsoft.Msagl.Core.Geometry;
|
||||
using Microsoft.Msagl.Core.Geometry.Curves;
|
||||
using Microsoft.Msagl.Core.Layout;
|
||||
|
||||
namespace Microsoft.Msagl.Routing {
|
||||
//this class contains a set of edge geometries, and set of node boundaries, ICurves, that might obstruct the edge routing
|
||||
internal class PreGraph {
|
||||
internal List<EdgeGeometry> edgeGeometries;
|
||||
internal Set<ICurve> nodeBoundaries;
|
||||
internal Rectangle boundingBox;
|
||||
|
||||
internal PreGraph(EdgeGeometry[] egs, Set<ICurve> nodeBoundaries) {
|
||||
edgeGeometries = new List<EdgeGeometry>(egs);
|
||||
this.nodeBoundaries = new Set<ICurve>(nodeBoundaries);
|
||||
boundingBox = Rectangle.CreateAnEmptyBox();
|
||||
foreach (var curve in nodeBoundaries)
|
||||
boundingBox.Add(curve.BoundingBox);
|
||||
}
|
||||
|
||||
internal PreGraph() {}
|
||||
|
||||
internal void AddGraph(PreGraph a) {
|
||||
edgeGeometries.AddRange(a.edgeGeometries);
|
||||
nodeBoundaries += a.nodeBoundaries;
|
||||
boundingBox.Add(a.boundingBox);
|
||||
}
|
||||
|
||||
internal void AddNodeBoundary(ICurve curve) {
|
||||
nodeBoundaries.Insert(curve);
|
||||
boundingBox.Add(curve.BoundingBox);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue