mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
feat: 新增NPC与外交逻辑,优化UI组件结构
重构并精简了部分UI组件,移除冗余弹窗与详情组件,新增NPC相关逻辑(npcBehaviorLogic、npcGrowthLogic、npcStore等)及外交逻辑(diplomaticLogic、DiplomacyView)。完善分页、标签、复选框等通用UI组件。优化战报弹窗,调整README下载链接为相对路径,修复部分国际化内容。
This commit is contained in:
@@ -25,6 +25,7 @@ export const useGameConfig = () => {
|
||||
[BuildingType.CrystalMine]: 'crystalMine',
|
||||
[BuildingType.DeuteriumSynthesizer]: 'deuteriumSynthesizer',
|
||||
[BuildingType.SolarPlant]: 'solarPlant',
|
||||
[BuildingType.FusionReactor]: 'fusionReactor',
|
||||
[BuildingType.RoboticsFactory]: 'roboticsFactory',
|
||||
[BuildingType.NaniteFactory]: 'naniteFactory',
|
||||
[BuildingType.Shipyard]: 'shipyard',
|
||||
@@ -33,6 +34,8 @@ export const useGameConfig = () => {
|
||||
[BuildingType.CrystalStorage]: 'crystalStorage',
|
||||
[BuildingType.DeuteriumTank]: 'deuteriumTank',
|
||||
[BuildingType.DarkMatterCollector]: 'darkMatterCollector',
|
||||
[BuildingType.DarkMatterTank]: 'darkMatterTank',
|
||||
[BuildingType.MissileSilo]: 'missileSilo',
|
||||
[BuildingType.Terraformer]: 'terraformer',
|
||||
[BuildingType.LunarBase]: 'lunarBase',
|
||||
[BuildingType.SensorPhalanx]: 'sensorPhalanx',
|
||||
@@ -46,11 +49,15 @@ export const useGameConfig = () => {
|
||||
[ShipType.HeavyFighter]: 'heavyFighter',
|
||||
[ShipType.Cruiser]: 'cruiser',
|
||||
[ShipType.Battleship]: 'battleship',
|
||||
[ShipType.Battlecruiser]: 'battlecruiser',
|
||||
[ShipType.Bomber]: 'bomber',
|
||||
[ShipType.Destroyer]: 'destroyer',
|
||||
[ShipType.SmallCargo]: 'smallCargo',
|
||||
[ShipType.LargeCargo]: 'largeCargo',
|
||||
[ShipType.ColonyShip]: 'colonyShip',
|
||||
[ShipType.Recycler]: 'recycler',
|
||||
[ShipType.EspionageProbe]: 'espionageProbe',
|
||||
[ShipType.SolarSatellite]: 'solarSatellite',
|
||||
[ShipType.DarkMatterHarvester]: 'darkMatterHarvester',
|
||||
[ShipType.Deathstar]: 'deathstar'
|
||||
}
|
||||
@@ -65,6 +72,8 @@ export const useGameConfig = () => {
|
||||
[DefenseType.PlasmaTurret]: 'plasmaTurret',
|
||||
[DefenseType.SmallShieldDome]: 'smallShieldDome',
|
||||
[DefenseType.LargeShieldDome]: 'largeShieldDome',
|
||||
[DefenseType.AntiBallisticMissile]: 'antiBallisticMissile',
|
||||
[DefenseType.InterplanetaryMissile]: 'interplanetaryMissile',
|
||||
[DefenseType.PlanetaryShield]: 'planetaryShield'
|
||||
}
|
||||
|
||||
@@ -76,6 +85,12 @@ export const useGameConfig = () => {
|
||||
[TechnologyType.HyperspaceTechnology]: 'hyperspaceTechnology',
|
||||
[TechnologyType.PlasmaTechnology]: 'plasmaTechnology',
|
||||
[TechnologyType.ComputerTechnology]: 'computerTechnology',
|
||||
[TechnologyType.EspionageTechnology]: 'espionageTechnology',
|
||||
[TechnologyType.WeaponsTechnology]: 'weaponsTechnology',
|
||||
[TechnologyType.ShieldingTechnology]: 'shieldingTechnology',
|
||||
[TechnologyType.ArmourTechnology]: 'armourTechnology',
|
||||
[TechnologyType.Astrophysics]: 'astrophysics',
|
||||
[TechnologyType.GravitonTechnology]: 'gravitonTechnology',
|
||||
[TechnologyType.CombustionDrive]: 'combustionDrive',
|
||||
[TechnologyType.ImpulseDrive]: 'impulseDrive',
|
||||
[TechnologyType.HyperspaceDrive]: 'hyperspaceDrive',
|
||||
|
||||
Reference in New Issue
Block a user