Skip to content

Add Team Yankee formations #5

@ianpaschal

Description

@ianpaschal

Add all Team Yankee formations. The data is attached as CSV.

Compatibility with Flames of War

Some formations appear to exist in multiple force diagrams. This is a departure from Flames of War, where each formation has an "organic" force diagram it belongs to, but each force diagram can include formations from other force diagrams of the same faction and era.

It would be smart to talk to Gregg about whether this is intentional, or if it's simply a "appear twice" because it's handy. If it's the former, there are a few options:

  1. Invert the ForceDiagramFormation relationship so that a ForceDiagram's metadata includes an array of formations: Unit[];.
  2. Change the type of Formation.forceDiagram from ForceDiagram to ForceDiagram[].

Source Data

formations.csv

Recommended Approach

Use LLM (Claude?) to convert CSV into enum and Record:

Convert the provided CSV file into Typescript, using the following snippet as to the guide. Use the id column as the keys/unit enum. The two sourceForceDiagram columns should be entries 0 and 1 in a forceDiagrams array object.

export enum Unit {
  LB101 = 'LB101',
}

export const units: Record<Unit, UnitMetadata<ForceDiagram>> = {
  [Unit.LB101]: {
    displayName: 'Sherman Armoured Squadron',
    forceDiagrams: [ForceDiagram.FortressEuropeBritish],
    isFormation: true,
  },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    TaskSomething behind-the-scenes which needs to be done, but delivers no value to the user.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions