From 001c0c2e00082a87fb15754003f6b01a1b4fb89d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 27 Sep 2025 17:18:25 +0200 Subject: Less flexible diagram node styles; use rendered item/tile images --- server/protocol/src/book.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'server/protocol/src') diff --git a/server/protocol/src/book.rs b/server/protocol/src/book.rs index 33b5654e..02dfa425 100644 --- a/server/protocol/src/book.rs +++ b/server/protocol/src/book.rs @@ -54,8 +54,16 @@ pub struct DiagramNode { #[bincode(with_serde)] pub position: Vec2, pub label: Message, - pub color: Option, - pub shape: Option, + pub style: NodeStyle, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +pub enum NodeStyle { + IntermediateProduct, + FinalProduct, + ProcessActive, + ProcessPassive, + ProcessInstant, } #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] -- cgit v1.2.3-70-g09d2