aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-core/src/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'games/rstnode/rst-core/src/data.rs')
-rw-r--r--games/rstnode/rst-core/src/data.rs4
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 {