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,53 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Microsoft.Msagl.GraphmapsWithMesh
|
||||
{
|
||||
|
||||
public class Network
|
||||
{
|
||||
public List<Twin> Edges = new List<Twin>();
|
||||
public int N;
|
||||
public int E;
|
||||
public int[,] M;
|
||||
|
||||
public Network(int numV, int numE, bool Random)
|
||||
{
|
||||
N = numV;
|
||||
E = numE;
|
||||
#if SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=340
|
||||
throw new InvalidOperationException();
|
||||
#else
|
||||
M = new int[numV + 1, numV + 1];
|
||||
#endif
|
||||
}
|
||||
public Network(int numV, int numE)
|
||||
{
|
||||
N = numV;
|
||||
#if SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=340
|
||||
throw new InvalidOperationException();
|
||||
#else
|
||||
M = new int[numV + 1, numV + 1];
|
||||
#endif
|
||||
int v2;
|
||||
while (E < numE)
|
||||
{
|
||||
Random r = new Random();
|
||||
var v1 = r.Next(1, numV);
|
||||
v2 = r.Next(1, numV);
|
||||
|
||||
if (v1 == v2) continue;
|
||||
var newEdge = Edges.All(x => (v1 != x.A || v2 != x.B) && (v1 != x.B || v2 != x.A));
|
||||
if (newEdge)
|
||||
{
|
||||
E++;
|
||||
Edges.Add(new Twin(v1, v2));
|
||||
M[v1, v2] = 1;
|
||||
M[v2, v1] = 1;
|
||||
}
|
||||
//Console.WriteLine(E);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue