From 3c76bf083d2099165f94a95dcb81ab99ef237856 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 12 Apr 2022 01:12:48 +0100 Subject: [PATCH] Genericise SpecLoaded We are going to want to make inert pieces occultable too. Currently this is meaningless since we only call load_inert when resolving the occultation for *another* piece. But that is going to change. Signed-off-by: Ian Jackson --- src/gamestate.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gamestate.rs b/src/gamestate.rs index 6f229f20..1f2fbfec 100644 --- a/src/gamestate.rs +++ b/src/gamestate.rs @@ -261,10 +261,11 @@ pub struct ApiPieceOpArgs<'a> { } #[derive(Debug)] -pub struct PieceSpecLoaded { - pub p: Box, +pub struct SpecLoaded { + pub p: Box, pub occultable: PieceSpecLoadedOccultable, } +pub type PieceSpecLoaded = SpecLoaded; pub type PieceSpecLoadedOccultable = Option<(OccultIlkName, Arc)>; -- 2.30.2