diff options
Diffstat (limited to 'server/protocol/src/lib.rs')
| -rw-r--r-- | server/protocol/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index 15911dd3..6b4e97f1 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -43,6 +43,8 @@ fn test_version_parse() { let _ = *VERSION; } +pub const KEEPALIVE_INTERVAL: f32 = 1.; + #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)] #[serde(transparent)] pub struct PlayerID(#[serde(deserialize_with = "deser_i64")] pub i64); @@ -142,6 +144,7 @@ pub enum PacketS { Idle { paused: bool, }, + Keepalive, Ready, /// For use in replay sessions only |