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); }
static Phase CreatePhase(PhaseBase phaseBase) { return(new Phase(phaseBase)); }
public Phase(PhaseBase phaseBase) { StartTime = phaseBase.StartTime; waves = Builder.GetWaves(phaseBase); Active = false; }