mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Merge pull request #315 from WoodyXP/313-add-sam-information-V2
Added Era and Range to Sams and Ground Units V2
This commit is contained in:
commit
9f6da4845a
1
client/src/@types/unitdatabase.d.ts
vendored
1
client/src/@types/unitdatabase.d.ts
vendored
@ -17,6 +17,7 @@ interface UnitBlueprint {
|
||||
era?: string[];
|
||||
label: string;
|
||||
shortLabel: string;
|
||||
range?: string;
|
||||
loadouts: LoadoutBlueprint[];
|
||||
filename: string;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -35,6 +35,15 @@ export class UnitDatabase {
|
||||
return null;
|
||||
}
|
||||
|
||||
/* Gets a specific blueprint by range */
|
||||
getByRange(range: string) {
|
||||
for (let unit in this.blueprints) {
|
||||
if (this.blueprints[unit].range === range)
|
||||
return this.blueprints[unit];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* Get all blueprints by role */
|
||||
getByRole(role: string) {
|
||||
var units = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user