public WaveBase(WaveDetails waveDetails, int startTime) { Mobs = waveDetails.mobs; Movescript = waveDetails.movescript; StartTime = startTime; WillFire = waveDetails.willFire; }
internal static List <Wave> GetWaves(PhaseBase phaseBase) { WaveList waveList = JsonConvert.DeserializeObject <WaveList>(FileReader.GetDataFromFile(phaseBase.Name)); List <Wave> waves = new List <Wave>(); foreach (WaveInfo waveInfo in waveList.Waves) { WaveDetails waveDetails = JsonConvert.DeserializeObject <WaveDetails>(FileReader.GetDataFromFile(waveInfo.Name)); WaveBase waveBase = new WaveBase(waveDetails, waveInfo.StartTime + phaseBase.StartTime); waves.Add(CreateWave(waveBase)); } return(waves); }