diff options
Diffstat (limited to 'shared/src/packets.rs')
-rw-r--r-- | shared/src/packets.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/src/packets.rs b/shared/src/packets.rs index c480ba8..c273028 100644 --- a/shared/src/packets.rs +++ b/shared/src/packets.rs @@ -19,6 +19,12 @@ pub enum Packet { Sound(Object, Vec<u8>), } +impl Object { + pub fn new() -> Self { + Self(rand::random()) + } +} + impl Packet { pub fn serialize(&self, w: &mut impl Write) -> Result<()> { match self { |