CounterDroneBackend/src/CounterDrone.Core/Models/ScenarioUnit.cs
tian 8a198a27a0 新增 LaunchPlatformSpec:发射平台与探测设备分离
- LaunchPlatformSpec(纯发射参数,无探测字段)
- ScenarioUnit.FireUnitSpecId → LaunchPlatformSpecId
- PlatformEntity/BuildFireUnits/BuildDetectionSources 适配
- ReportGenerator/ReportService 适配
- FireUnitSpec 保留但不使用
- 243/250 通过,7 个待修
2026-06-19 21:43:06 +08:00

42 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using SQLite;
using CounterDrone.Core.Models;
namespace CounterDrone.Core.Models
{
/// <summary>想定数据:装备部署</summary>
[Table("ScenarioUnit")]
public class ScenarioUnit
{
[PrimaryKey]
public string Id { get; set; } = Guid.NewGuid().ToString();
[Indexed]
public string ScenarioId { get; set; } = string.Empty;
/// <summary>外键 → LaunchPlatformSpec发射平台</summary>
public string LaunchPlatformSpecId { get; set; } = string.Empty;
/// <summary>外键 → SensorSpec探测设备</summary>
public string SensorSpecId { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public int EquipmentRole { get; set; } = (int)Models.EquipmentRole.LaunchPlatform;
public int Quantity { get; set; } = 1;
public string WaveId { get; set; } = string.Empty;
public double PositionX { get; set; }
public double PositionY { get; set; }
public double PositionZ { get; set; }
public int? AerosolType { get; set; }
public int? MunitionCount { get; set; }
public int Source { get; set; } = (int)ConfigSource.Manual;
}
}