SimulationReport: TargetCount→DroneCount, EquipmentCount→UnitCount

This commit is contained in:
tian 2026-06-18 17:25:02 +08:00
parent 843141a7a8
commit f0f5f76b8b
2 changed files with 4 additions and 4 deletions

View File

@ -19,9 +19,9 @@ namespace CounterDrone.Core.Models
public string CompletedAt { get; set; } = string.Empty; public string CompletedAt { get; set; } = string.Empty;
public int TargetCount { get; set; } public int DroneCount { get; set; }
public int EquipmentCount { get; set; } public int UnitCount { get; set; }
public int InterceptResult { get; set; } public int InterceptResult { get; set; }

View File

@ -39,8 +39,8 @@ namespace CounterDrone.Core.Services
ScenarioName = config.Info.Name, ScenarioName = config.Info.Name,
ScenarioNumber = config.Info.ScenarioNumber, ScenarioNumber = config.Info.ScenarioNumber,
CompletedAt = DateTime.UtcNow.ToString("o"), CompletedAt = DateTime.UtcNow.ToString("o"),
TargetCount = total, DroneCount = total,
EquipmentCount = config.Units.Count, UnitCount = config.Units.Count,
InterceptResult = (int)result, InterceptResult = (int)result,
Content = _generator.Generate(config, events, Simulation.DroneStatus.Flying, duration, Content = _generator.Generate(config, events, Simulation.DroneStatus.Flying, duration,
droneSpecs, fireUnitSpecs, sensorSpecs), droneSpecs, fireUnitSpecs, sensorSpecs),