From cbc53a81751f38e498899a60472aea30d2be8d54 Mon Sep 17 00:00:00 2001 From: Julian Date: Sun, 29 Oct 2023 16:08:09 +0100 Subject: [PATCH] start modelling BS data --- src/main/scala/model.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/scala/model.scala b/src/main/scala/model.scala index f36688e..a92d2a3 100644 --- a/src/main/scala/model.scala +++ b/src/main/scala/model.scala @@ -19,6 +19,23 @@ given HasCost[Warband] with given HasCost[Force] with extension (x: Force) def cost: Int = x.warbands.map(_.cost).sum + +trait BSData +type Tier +type WargearOption +type BSId +type BSConstraint + +case class BSHero( + bsId: BSId, + name: String, + tier: Tier, + baseCost: Int, + unique: Boolean, + wargearOptions: List[WargearOption], + constraints: List[BSConstraint] = List() +) extends BSData + // transparent trait HasCost: // def cost: Int