示例#1
0
        public Heatmap(IDatastore datastore, Stream demo, Overview overview, DemoAnalysis analysis)
        {
            parser = new DemoParser(demo);

            parser.FlashNadeExploded     += HandleFlashNadeExploded;
            parser.SmokeNadeStarted      += HandleSmokeNadeStarted;
            parser.ExplosiveNadeExploded += HandleExplosiveNadeExploded;
            parser.FireNadeStarted       += HandleFireNadeStarted;
            parser.PlayerKilled          += HandlePlayerKilled;
            parser.TickDone        += HandleTickDone;
            parser.RoundStart      += HandleRoundStart;
            parser.FreezetimeEnded += parser_FreezetimeEnded;

            parser.MatchStarted += HandleMatchStarted;

            this.analysis          = analysis;
            this.analysis.Overview = overview;

            this.Datastore = datastore;
        }
示例#2
0
 public Heatmap(IDatastore datastore, Stream demo, Overview overview) : this(datastore, demo, overview, new DemoAnalysis())
 {
 }