public GameState(ParsedDemo dem, float time) { Accumulator = ""; Entities = new Dictionary <short, Entity>(); Messages = new List <string>(); Parent = dem; Stats = new Dictionary <StatIndex, int>(); Temps = new List <Temp>(); Time = time; }
private void MergeDemo(string filename) { QDemo dem = QDemo.Load(filename); ParsedDemo demo = new ParsedDemo(); if (Demos.Count == 0) { MinTime = 100; MaxTime = 0; } demo.Parse(dem); Demos.Add(demo); MinTime = Math.Min(MinTime, demo.Start); MaxTime = Math.Max(MaxTime, demo.End); }
private void OverlayDemo(string filename) { QDemo dem = QDemo.Load(filename); ParsedDemo demo; if (Demos.Count > 0) { demo = Demos[0]; } else { demo = new ParsedDemo(); Demos.Add(demo); MinTime = 100; MaxTime = 0; } demo.Parse(dem); MinTime = Math.Min(MinTime, demo.Start); MaxTime = Math.Max(MaxTime, demo.End); }