diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-09-27 17:18:25 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-09-27 17:35:01 +0200 | 
| commit | 001c0c2e00082a87fb15754003f6b01a1b4fb89d (patch) | |
| tree | d6d70017b5064abfb6f58a2ea027e06a8817b3e6 /server/protocol | |
| parent | 2e301a9cae6b3944a5e6e32ba8184d31a7bddfba (diff) | |
| download | hurrycurry-001c0c2e00082a87fb15754003f6b01a1b4fb89d.tar hurrycurry-001c0c2e00082a87fb15754003f6b01a1b4fb89d.tar.bz2 hurrycurry-001c0c2e00082a87fb15754003f6b01a1b4fb89d.tar.zst | |
Less flexible diagram node styles; use rendered item/tile images
Diffstat (limited to 'server/protocol')
| -rw-r--r-- | server/protocol/src/book.rs | 12 | 
1 files changed, 10 insertions, 2 deletions
| 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<String>, -    pub shape: Option<String>, +    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)] | 
