Пример #1
0
 /// <summary>
 /// This constructor is only for serialisation.
 /// </summary>
 public Explosion()
 {
     _inflictDamage = new Curve();
     _inflictDamage.PreLoop = CurveLoopType.Constant;
     _inflictDamage.PostLoop = CurveLoopType.Constant;
     _inflictDamage.Keys.Add(new CurveKey(0, 200, 0, 0, CurveContinuity.Smooth));
     _inflictDamage.Keys.Add(new CurveKey(300, 0, -3, -3, CurveContinuity.Smooth));
     _radialFlow = new RadialFlow();
     _impactHoleRadius = 100;
     _particleEngineNames = new[] { (CanonicalString)"dummypeng" };
     _sound = "Explosion";
 }
Пример #2
0
 /// <summary>
 /// This constructor is only for serialisation.
 /// </summary>
 public Repulsor()
 {
     _radialFlow = new RadialFlow();
     _particleEngineNames = new[] { (CanonicalString)"dummypeng" };
 }