private IEnumerable <KeyValuePair <string, object> > CreateReportData(IZone zone, Player owner, IEnumerable <CombatSummary> summaries)
        {
            var result = new Dictionary <string, object>
            {
                { k.zoneID, zone.Id },
                { k.victim, _combatLogHelper.GetUnitInfo(owner) },
            };

            var attackers = summaries.ToDictionary("a", summary => summary.ToDictionary());

            result.Add(k.attackers, attackers);
            return(result);
        }
예제 #2
0
        public Dictionary <string, object> ToDictionary()
        {
            var dictionary = new Dictionary <string, object>
            {
                { k.attacker, _combatLogHelper.GetUnitInfo(Source) },
                { k.damageDone, _totalDamage },
                { "jammerTotal", _sensorJammerTotal },
                { "jammer", _sensorJammerSuccess },
                { "demobilizer", _demobilizer },
                { "suppressor", _sensorDampener },
                { "dispersion", _energyDispersion },
                { "killingBlow", _killingBlow },
            };

            return(dictionary);
        }