mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
feat: 新增战报弹窗与舰队模拟器,重构UI组件
新增 BattleReportDialog、SpyReportDialog、NumberWithTooltip 等组件,完善舰队模拟器功能。重构并引入 Sheet、Sidebar、Tooltip、Skeleton 等 UI 组件,优化界面结构。实现 battle.worker 支持战斗计算,增加 universeStore、fleetStorageLogic 等核心逻辑,完善多语言与类型定义。
This commit is contained in:
@@ -33,9 +33,11 @@ export const useGameConfig = () => {
|
||||
[BuildingType.CrystalStorage]: 'crystalStorage',
|
||||
[BuildingType.DeuteriumTank]: 'deuteriumTank',
|
||||
[BuildingType.DarkMatterCollector]: 'darkMatterCollector',
|
||||
[BuildingType.Terraformer]: 'terraformer',
|
||||
[BuildingType.LunarBase]: 'lunarBase',
|
||||
[BuildingType.SensorPhalanx]: 'sensorPhalanx',
|
||||
[BuildingType.JumpGate]: 'jumpGate'
|
||||
[BuildingType.JumpGate]: 'jumpGate',
|
||||
[BuildingType.PlanetDestroyerFactory]: 'planetDestroyerFactory'
|
||||
}
|
||||
|
||||
// 舰船类型枚举值到翻译键的映射
|
||||
@@ -49,7 +51,8 @@ export const useGameConfig = () => {
|
||||
[ShipType.ColonyShip]: 'colonyShip',
|
||||
[ShipType.Recycler]: 'recycler',
|
||||
[ShipType.EspionageProbe]: 'espionageProbe',
|
||||
[ShipType.DarkMatterHarvester]: 'darkMatterHarvester'
|
||||
[ShipType.DarkMatterHarvester]: 'darkMatterHarvester',
|
||||
[ShipType.Deathstar]: 'deathstar'
|
||||
}
|
||||
|
||||
// 防御设施类型枚举值到翻译键的映射
|
||||
@@ -61,7 +64,8 @@ export const useGameConfig = () => {
|
||||
[DefenseType.IonCannon]: 'ionCannon',
|
||||
[DefenseType.PlasmaTurret]: 'plasmaTurret',
|
||||
[DefenseType.SmallShieldDome]: 'smallShieldDome',
|
||||
[DefenseType.LargeShieldDome]: 'largeShieldDome'
|
||||
[DefenseType.LargeShieldDome]: 'largeShieldDome',
|
||||
[DefenseType.PlanetaryShield]: 'planetaryShield'
|
||||
}
|
||||
|
||||
// 科技类型枚举值到翻译键的映射
|
||||
@@ -75,7 +79,9 @@ export const useGameConfig = () => {
|
||||
[TechnologyType.CombustionDrive]: 'combustionDrive',
|
||||
[TechnologyType.ImpulseDrive]: 'impulseDrive',
|
||||
[TechnologyType.HyperspaceDrive]: 'hyperspaceDrive',
|
||||
[TechnologyType.DarkMatterTechnology]: 'darkMatterTechnology'
|
||||
[TechnologyType.DarkMatterTechnology]: 'darkMatterTechnology',
|
||||
[TechnologyType.TerraformingTechnology]: 'terraformingTechnology',
|
||||
[TechnologyType.PlanetDestructionTech]: 'planetDestructionTech'
|
||||
}
|
||||
|
||||
// 军官类型枚举值到翻译键的映射
|
||||
|
||||
Reference in New Issue
Block a user