Units wiki

This commit is contained in:
v.holodov
2025-01-07 15:39:00 +03:00
parent 4a5101fb6a
commit 27308c2c88
54 changed files with 797 additions and 12339 deletions
+4
View File
@@ -0,0 +1,4 @@
export interface IArmorType {
id: string
name: string
}
+71
View File
@@ -0,0 +1,71 @@
import {Irace} from "./Irace";
import {IArmorType} from "./IArmorType";
export interface IUnitResponse {
race: string
units: IUnit[]
}
export interface IUnit {
id: number
race: Irace
armorType: IArmorType
armorType2?: IArmorType
name: string
filename: string
description: string
buildCostRequisition: number
buildCostPower: number
capInfantry: number
capSupport: number
squadStartSize: number
squadMaxSize: number
squadLimit?: number
health: number
healthRegeneration: number
moraleDeathPenalty: number
moraleMax?: number
moraleBroken?: number
moraleRegeneration?: number
mass: number
upTime: number
moveSpeed: number
sightRadius: number
detectRadius: number
reinforceCostRequisition?: number
reinforceCostPower?: number
reinforceTime?: number
icon: string
modId: number
weapons: WeaponHardpoint[]
}
export interface WeaponHardpoint {
weapon: Weapon
hardpoint: number
}
export interface Weapon {
id: number
name: string
costRequisition: number
costPower: number
costTimeSeconds: number
accuracy: number
reloadTime: number
setupTime: number
accuracyReductionMoving: number
minDamage: number
maxDamage: number
moraleDamage: number
modId: number
weaponPiercings: WeaponPiercing[]
}
export interface WeaponPiercing {
id: number
armorType: IArmorType
piercingValue: number
}
+7
View File
@@ -0,0 +1,7 @@
export interface IMod {
id: number;
name: string;
version: string;
technicalName: string;
isBeta: boolean;
}
+4
View File
@@ -0,0 +1,4 @@
export interface Irace {
id: string;
name: string;
}