public xEffect Add(string theLabel, int Endtime) { xEffect newEff = new xEffect(theLabel, Endtime); Add(newEff); return(newEff); }
public xEffect Add(int Starttime, int Endtime) { xEffect newEff = new xEffect(Starttime, Endtime); Add(newEff); return(newEff); }
public xEffect Add(int Endtime) { xEffect newEff = new xEffect(Endtime); Add(newEff); return(newEff); }
public void Add(xEffect newEffect) { if (effects.Count > 0) { if (newEffect.starttime < effects[effects.Count - 1].endtime) { System.Diagnostics.Debugger.Break(); // Raise Exception } else { effects.Add(newEffect); maxMillis = newEffect.endtime; // effectCount++; //Array.Resize(ref effects, effectCount); //effects[effectCount - 1] = newEffect; } } else { effects.Add(newEffect); maxMillis = newEffect.endtime; //effectCount = 1; //Array.Resize(ref effects, 1); //effects[0] = newEffect; } }