Sergeants frontend

This commit is contained in:
Anibus
2025-03-16 12:35:01 +03:00
parent 2b4352ff21
commit 98b5a47c0f
20 changed files with 938 additions and 479 deletions
+38 -2
View File
@@ -16,6 +16,10 @@ export interface IUnit {
description: string
buildCostRequisition: number
buildCostPower: number
buildCostPopulation: number
buildCostFaith: number
buildCostSouls: number
buildCostTime: number
capInfantry: number
capSupport: number
squadStartSize: number
@@ -34,9 +38,36 @@ export interface IUnit {
detectRadius: number
reinforceCostRequisition?: number
reinforceCostPower?: number
reinforceCostPopulation ?: number
reinforceCostFaith ?: number
reinforceTime?: number
icon: string
modId: number
sergeants: ISergeant[]
weapons: WeaponHardpoint[]
}
export interface ISergeant {
id: number
armorType: IArmorType
armorType2?: IArmorType
name: string
filename: string
description: string
buildCostRequisition: number
buildCostPower: number
buildCostPopulation: number
buildCostFaith: number
buildCostSouls: number
buildCostTime: number
health: number
healthRegeneration: number
moraleDeathPenalty: number
mass: number
upTime: number
sightRadius: number
detectRadius: number
icon: string
weapons: WeaponHardpoint[]
}
@@ -44,11 +75,14 @@ export interface IUnit {
export interface WeaponHardpoint {
weapon: IWeapon
hardpoint: number
hardpointOrder: number
}
export interface IWeapon {
id: number
name: string
filename: string
description: string
costRequisition: number
costPower: number
costTimeSeconds: number
@@ -64,11 +98,13 @@ export interface IWeapon {
isMeleeWeapon: boolean
canAttackAir: boolean
canAttackGround: boolean
haveEquipButton: boolean
icon: string
modId: number
weaponPiercings: WeaponPiercing[]
weaponPiercings: IWeaponPiercing[]
}
export interface WeaponPiercing {
export interface IWeaponPiercing {
id: number
armorType: IArmorType
piercingValue: number
+16
View File
@@ -0,0 +1,16 @@
import {Irace} from "./Irace";
export interface IRaceUnits {
race: Irace
infantry: IUnitShort[]
tech: IUnitShort[]
support: IUnitShort[]
}
export interface IUnitShort {
name: string
icon: string
id: number
canDetect: boolean
armourTypeName: string
}