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,46 +0,0 @@
|
|||
using System.Diagnostics;
|
||||
using Microsoft.Msagl.Core.Geometry;
|
||||
|
||||
namespace Microsoft.Msagl.Routing.Rectilinear.Nudging
|
||||
{
|
||||
internal class SegWithIndex {
|
||||
internal Point[] Points;
|
||||
internal int I;//offset
|
||||
|
||||
internal SegWithIndex(Point[] pts, int i) {
|
||||
Debug.Assert(i<pts.Length&&i>=0);
|
||||
Points = pts;
|
||||
I = i;
|
||||
#if SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=289 Support Dictionary directly based on object's GetHashCode
|
||||
UpdateHashKey();
|
||||
#endif
|
||||
}
|
||||
|
||||
internal Point Start {get{return Points[I];}}
|
||||
internal Point End{ get{return Points[I+1];}}
|
||||
|
||||
override public bool Equals(object obj) {
|
||||
var other = (SegWithIndex) obj;
|
||||
return other.Points== Points&& other.I == I;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
#if !SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=372; SharpKit/Colin: unchecked is not supported
|
||||
unchecked {
|
||||
#endif
|
||||
return (Points.GetHashCode() * 397) ^ I;
|
||||
#if !SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=372
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=289 Support Dictionary directly based on object's GetHashCode
|
||||
private SharpKit.JavaScript.JsString _hashKey;
|
||||
private void UpdateHashKey()
|
||||
{
|
||||
_hashKey = GetHashCode().ToString();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue