public void FireOneBullet() { var emitterData = GetEmitterData(water, 512, 2.0f); emitterData.SpawnInterval = 0.0f; emitterData.Acceleration = new RangeGraph <Vector3D>(Vector3D.Zero, Vector3D.Zero); emitterData.Color = new RangeGraph <Color>(new Color(255, 255, 255), new Color(255, 255, 255)); emitterData.Size = new RangeGraph <Size>(new Size(0.5f), new Size(0.5f)); var emitter = new ParticleEmitter(emitterData, Vector3D.Zero); var enemy = new MockEnemy(new Vector3D(0, -3, 0), Size.Half, spark); new Command(() => //ncrunch: no coverage start { emitter.EmitterData.BillboardMode = BillboardMode.Ground; emitter.EmitterData.StartVelocity.Start = enemy.Position * 4.0f + enemy.direction * 0.5f; emitter.EmitterData.StartVelocity.End = Vector3D.Zero; emitter.Spawn(); }).Add(new KeyTrigger(Key.Space)); //ncrunch: no coverage end }
public void FireOneBullet() { var emitterData = GetEmitterData(water, 512, 2.0f); emitterData.SpawnInterval = 0.0f; emitterData.Acceleration = new RangeGraph<Vector3D>(Vector3D.Zero, Vector3D.Zero); emitterData.Color = new RangeGraph<Color>(new Color(255, 255, 255), new Color(255, 255, 255)); emitterData.Size = new RangeGraph<Size>(new Size(0.5f), new Size(0.5f)); var emitter = new ParticleEmitter(emitterData, Vector3D.Zero); var enemy = new MockEnemy(new Vector3D(0, -3, 0), Size.Half, spark); new Command(() => //ncrunch: no coverage start { emitter.EmitterData.BillboardMode = BillboardMode.Ground; emitter.EmitterData.StartVelocity.Start = enemy.Position * 4.0f + enemy.direction * 0.5f; emitter.EmitterData.StartVelocity.End = Vector3D.Zero; emitter.Spawn(); }).Add(new KeyTrigger(Key.Space)); //ncrunch: no coverage end }