aboutsummaryrefslogtreecommitdiff
path: root/server/protocol/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/protocol/src/lib.rs')
-rw-r--r--server/protocol/src/lib.rs23
1 files changed, 17 insertions, 6 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index 323cf2c2..b8f30ce7 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -119,20 +119,28 @@ pub enum PacketS {
timeout: Option<f32>,
},
+ /// For use in replay sessions only
+ ReplayTick {
+ dt: f64,
+ },
+
#[serde(skip)]
#[bincode(skip)]
- /// For internal use only
+ /// For internal use only (customers)
ReplaceHand {
player: PlayerID,
item: Option<ItemIndex>,
},
#[serde(skip)]
#[bincode(skip)]
- /// For internal use only
+ /// For internal use only (customers)
ApplyScore(Score),
- /// For use in replay sessions only
- ReplayTick {
- dt: f64,
+ #[serde(skip)]
+ #[bincode(skip)]
+ /// For internal use only (customers)
+ Effect {
+ player: PlayerID,
+ name: String,
},
}
@@ -143,7 +151,6 @@ pub enum Message {
Text(String),
Item(ItemIndex),
Tile(TileIndex),
- Effect(String),
}
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)]
@@ -208,6 +215,10 @@ pub enum PacketC {
message: Option<Message>,
timeout: Option<MessageTimeout>,
},
+ Effect {
+ name: String,
+ player: PlayerID,
+ },
ServerMessage {
text: String,
},