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