mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
import { AICFormationContextDataInterface, AICFormationDescriptor } from "./aicformationdescriptor";
|
|
import { AICFormationDescriptorPhrase } from "./aicformationdescriptorphrase";
|
|
import { AICFormationDescriptorSection } from "./aicformationdescriptorsection";
|
|
|
|
export interface AICFormationInterface {
|
|
"icon" : string,
|
|
"label" : string,
|
|
"name" : string,
|
|
"numGroups" : number,
|
|
"summary" : string,
|
|
"unitBreakdown" : string[]
|
|
}
|
|
|
|
|
|
|
|
export abstract class AICFormation {
|
|
|
|
"icon" = "";
|
|
"label" = "";
|
|
"name" = "";
|
|
"numGroups" = 1;
|
|
"summary" = "";
|
|
"unitBreakdown":string[] = []
|
|
|
|
|
|
constructor() {
|
|
|
|
this.unitBreakdown = [];
|
|
}
|
|
|
|
|
|
addToDescriptorPhrase( section: AICFormationDescriptorSection, phrase: AICFormationDescriptorPhrase, contextData: AICFormationContextDataInterface ) {
|
|
return phrase;
|
|
}
|
|
|
|
|
|
getDescriptor( contextData: AICFormationContextDataInterface ) {
|
|
|
|
return new AICFormationDescriptor().generate( this, contextData );
|
|
|
|
}
|
|
|
|
|
|
hasUnitBreakdown() {
|
|
return this.unitBreakdown.length > 0;
|
|
}
|
|
|
|
|
|
showFormationNameInDescriptor() {
|
|
return true;
|
|
}
|
|
|
|
|
|
} |