Skip to content

Commit

Permalink
Add K-Lab to initDB
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Nov 5, 2024
1 parent 700fd17 commit 0740244
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions backend/api/Database/Context/InitDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static List<Plant> GetPlants()
var plant2 = new Plant
{
Id = Guid.NewGuid().ToString(),
Installation = installations[0],
Installation = installations[1],
Name = "Kårstø",
PlantCode = "Kårstø"
};
Expand Down Expand Up @@ -154,13 +154,23 @@ private static List<Deck> GetDecks()
Name = "Huldra Mezzanine Deck"
};

var deckKLab = new Deck
{
Id = Guid.NewGuid().ToString(),
Plant = plants[1],
Installation = plants[1].Installation,
DefaultLocalizationPose = new DefaultLocalizationPose(),
Name = "K-Lab"
};

return new List<Deck>(
[
deck1,
deck2,
deck3,
deck4,
deckHuldraMezzanine
deckHuldraMezzanine,
deckKLab
]);
}

Expand Down Expand Up @@ -243,6 +253,17 @@ private static List<Area> GetAreas()
DefaultLocalizationPose = new DefaultLocalizationPose(),
};

var areaKLab = new Area
{
Id = Guid.NewGuid().ToString(),
Deck = decks[5],
Plant = decks[5].Plant,
Installation = decks[5].Plant.Installation,
Name = "K-lab",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
};

return new List<Area>(
[
area1,
Expand All @@ -251,7 +272,8 @@ private static List<Area> GetAreas()
area4,
area5,
area6,
areaHuldraHB
areaHuldraHB,
areaKLab
]);
}

Expand Down

0 comments on commit 0740244

Please sign in to comment.