From 1e2c194d013cdd172f3ad6830ba082e5bb9d420f Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Thu, 16 Mar 2023 15:56:36 +0100 Subject: [PATCH] Delete Who.ts --- .../aic/aicformationdescriptorsection/Who.ts | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 client/src/aic/aicformationdescriptorsection/Who.ts diff --git a/client/src/aic/aicformationdescriptorsection/Who.ts b/client/src/aic/aicformationdescriptorsection/Who.ts deleted file mode 100644 index 244b0558..00000000 --- a/client/src/aic/aicformationdescriptorsection/Who.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { AICFormation } from "../aicformation"; -import { AICFormationContextDataInterface } from "../aicformationdescriptor"; -import { AICFormationDescriptorSection } from "../aicformationdescriptorsection"; -import { AICFormationDescriptorComponent } from "../aicformationdescriptorcomponent"; -import { AICFormationDescriptorPhrase } from "../aicformationdescriptorphrase"; - -export class AICFormationDescriptorSection_Who extends AICFormationDescriptorSection { - - label = "Who"; - name = "who"; - - constructor() { - - super(); - - } - - - generate( formation:AICFormation, contextData: AICFormationContextDataInterface ) { - - let phrase = new AICFormationDescriptorPhrase(); - - if ( contextData.control === "tactical" ) { - phrase.addComponent( new AICFormationDescriptorComponent( "", "Their callsign" ) ); - } - - phrase.addComponent( new AICFormationDescriptorComponent( contextData.aicCallsign, "Your callsign" ) ); - - this.addPhrase( phrase ); - - return this; - - } - -} \ No newline at end of file