VERSION 0.11.0 — LaunchPlatformSpec 分离 + 代码审查 + 250 测试
- LaunchPlatformSpec:纯发射参数,SensorSpec 统一探测 - 代码审查:拆分 DefaultData/AlgorithmTypes/SpecRepositories - GetEnums 中英文对照 / ModelId 3D 引用 - DataServiceTests +12 / 死代码清除 - 250/250 全过
This commit is contained in:
parent
b23b19e4e9
commit
dabf367b21
32
CHANGELOG.md
32
CHANGELOG.md
@ -2,6 +2,38 @@
|
||||
|
||||
---
|
||||
|
||||
## [0.11.0] - 2026-06-18
|
||||
|
||||
### Breaking — 发射平台与探测设备分离
|
||||
|
||||
- **LaunchPlatformSpec**:新增纯发射平台规格(GunCount/ChannelsPerGun/MuzzleVelocity/CruiseSpeed 等,无探测字段)
|
||||
- **ScenarioUnit.FireUnitSpecId → LaunchPlatformSpecId**:发射平台部署通过新 FK 引用
|
||||
- **SensorSpec 统一探测来源**:发射平台自带探测 + 独立探测设备,统一通过 SensorSpecId 引用
|
||||
- **BuildDetectionSources 简化**:只查 SensorSpec,不分 Launch/Detection 两条路径
|
||||
- **FireUnitSpec 保留不用**:旧类型保留代码但不参与运行时
|
||||
- **defaults.json +launchPlatforms**:新数据区
|
||||
|
||||
### Added — 代码审查 + 测试覆盖
|
||||
|
||||
- **DataServiceTests**:12 个,覆盖 7 类基础数据 CRUD
|
||||
- **死代码清除**:MunitionEntity._hasExceededReleaseAltitude
|
||||
- **Spec 类独立文件**:DroneSpec/FireUnitSpec/SensorSpec 等从 DefaultData.cs 拆出,命名空间 → Models
|
||||
- **PagedResult/EnumMetadata 独立文件**
|
||||
- **GetEnums 返回中英文对照**:EnumItem{Name,ChineseName,Value}
|
||||
- **FormationTemplate 补 PrimaryKey**
|
||||
|
||||
### Added — 3D 模型引用
|
||||
|
||||
- **DroneSpec/FireUnitSpec/SensorSpec +ModelId**:FK → ModelInfo
|
||||
- **EntitySnapshot +ModelId**:每帧推送给 Unity
|
||||
- **ModelInfo.ModelType→EntityType(枚举) +Description**
|
||||
|
||||
### Metrics
|
||||
|
||||
- 测试 **250**(+12),全部通过 12s
|
||||
|
||||
---
|
||||
|
||||
## [0.10.0] - 2026-06-18
|
||||
|
||||
### Breaking — 平台物理统一 + 模型重命名
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user