diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-10 20:57:06 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-10 20:57:06 +0200 |
commit | 7dbb34febaf75572f99fee459a77cf917de05d8f (patch) | |
tree | 72ba067aa5003d110f2bb707fb3e9c429388505b /server/src/lib.rs | |
parent | 3d13c85ec2e3acbee249b4baf20797cc38a8a121 (diff) | |
download | hurrycurry-7dbb34febaf75572f99fee459a77cf917de05d8f.tar hurrycurry-7dbb34febaf75572f99fee459a77cf917de05d8f.tar.bz2 hurrycurry-7dbb34febaf75572f99fee459a77cf917de05d8f.tar.zst |
Change protocol and server to allow multiple players per connection (untested)
Diffstat (limited to 'server/src/lib.rs')
-rw-r--r-- | server/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/lib.rs b/server/src/lib.rs index 2cbcc10b..c8f7af8c 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -25,6 +25,9 @@ pub mod state; use hurrycurry_protocol::glam::Vec2; +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] +pub struct ConnectionID(pub i64); + pub trait InterpolateExt { fn exp_to(&mut self, target: Self, dt: f32); } |