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:
Reinier Vens 2021-01-31 03:52:32 +00:00
commit dbc522a224
2105 changed files with 7033 additions and 1141 deletions

View file

@ -1,27 +0,0 @@
using System.Collections.Generic;
using Microsoft.Msagl.Core;
namespace Microsoft.Msagl.Layout.Layered {
internal class EdgeComparerBySource : IComparer<LayerEdge> {
int[] X;
internal EdgeComparerBySource(int[] X) {
this.X = X;
}
#if SHARPKIT //http://code.google.com/p/sharpkit/issues/detail?id=203
//SharpKit/Colin - https://code.google.com/p/sharpkit/issues/detail?id=290
public int Compare(LayerEdge a, LayerEdge b) {
#else
int System.Collections.Generic.IComparer<LayerEdge>.Compare(LayerEdge a, LayerEdge b) {
#endif
ValidateArg.IsNotNull(a, "a");
ValidateArg.IsNotNull(b, "b");
int r = X[a.Source] - X[b.Source];
if (r != 0)
return r;
return X[a.Target] - X[b.Target];
}
}
}