diff options
author | Katharina Fey <kookie@spacekookie.de> | 2021-02-07 21:12:43 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2021-02-07 21:12:43 +0100 |
commit | f9d4d7ec0198f192f53e583c259e35350fe9fb62 (patch) | |
tree | 161c6f8d84d5483d0e4dfe8f4a997876a8a5a981 /games/rstnode/rst-core/src/data.rs | |
parent | 0472f0fb50ffb945c83d662cd21b994562bee12d (diff) |
rstnode: basic mouse input handling
Diffstat (limited to 'games/rstnode/rst-core/src/data.rs')
-rw-r--r-- | games/rstnode/rst-core/src/data.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/games/rstnode/rst-core/src/data.rs b/games/rstnode/rst-core/src/data.rs index c41ec6d77e32..d0494fdef3e2 100644 --- a/games/rstnode/rst-core/src/data.rs +++ b/games/rstnode/rst-core/src/data.rs @@ -99,7 +99,7 @@ pub struct Team { /// An RGB color without alpha #[derive(Copy, Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] -pub struct Color(u8, u8, u8); +pub struct Color(pub u8, pub u8, pub u8); impl Color { pub fn black() -> Self { @@ -189,6 +189,8 @@ pub enum Owner { Player(Player), } + + /// Encodes upgrade level without numbers #[derive(Copy, Clone, Serialize, Deserialize)] pub enum Level { |