int timeUntilRemove = 2; // # of frames #endregion Fields #region Constructors public TeslaZap(TeslaZapInfo info, ProjectileArgs args) { Args = args; var bright = SequenceProvider.GetSequence("litning", "bright"); var dim = SequenceProvider.GetSequence("litning", "dim"); for (var n = 0; n < numZaps; n++) renderables.AddRange(DrawZapWandering(args.src, args.dest, n == numZaps - 1 ? bright : dim)); }
int timeUntilRemove = 2; // # of frames #endregion Fields #region Constructors public TeslaZap(TeslaZapInfo info, ProjectileArgs args) { Args = args; var bright = SequenceProvider.GetSequence(info.Image, "bright"); var dim = SequenceProvider.GetSequence(info.Image, "dim"); for( var n = 0; n < info.DimZaps; n++ ) renderables.AddRange(DrawZapWandering(args.src, args.dest, dim)); for( var n = 0; n < info.BrightZaps; n++ ) renderables.AddRange(DrawZapWandering(args.src, args.dest, bright)); }
public TeslaZap(TeslaZapInfo info, ProjectileArgs args) { this.args = args; this.info = info; }
public TeslaZap(TeslaZapInfo info, ProjectileArgs args) { Args = args; Info = info; }
public TeslaZap(TeslaZapInfo info, ProjectileArgs args) { this.args = args; this.info = info; this.timeUntilRemove = info.Duration; }