Optimization update
- request weapons and researches only when user open accordion - add building affects data
This commit is contained in:
@@ -33,9 +33,11 @@ export interface IBuilding {
|
||||
repairMax: number
|
||||
icon: string
|
||||
modId: number
|
||||
modifiers: IModifier[]
|
||||
affectedData: IAffectedData,
|
||||
weapons: WeaponHardpoint[]
|
||||
addons: IBuildingAddon[]
|
||||
researches: IResearch[]
|
||||
researches: IResearchShort[]
|
||||
units: IUnitShort[]
|
||||
affectedResearches: IResearchShort[],
|
||||
requirements: IRequirement,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export interface IResearchShort {
|
||||
id: string;
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
buildingId: number;
|
||||
|
||||
+9
-1
@@ -92,11 +92,19 @@ export interface ISergeant {
|
||||
|
||||
|
||||
export interface WeaponHardpoint {
|
||||
weapon: IWeapon
|
||||
weapon: IShortWeapon
|
||||
hardpoint: number
|
||||
hardpointOrder: number
|
||||
}
|
||||
|
||||
export interface IShortWeapon {
|
||||
id: number
|
||||
name: string
|
||||
filename: string
|
||||
icon: string
|
||||
isMeleeWeapon: boolean
|
||||
}
|
||||
|
||||
export interface IWeapon {
|
||||
id: number
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user