Browse Source

PartialEq LocalClientId u8

pull/80/head
jake 2 years ago
parent
commit
5d410f88f3
  1. 6
      src/ship/location.rs

6
src/ship/location.rs

@ -109,6 +109,12 @@ impl LocalClientId {
}
}
impl PartialEq<u8> for LocalClientId {
fn eq(&self, other: &u8) -> bool {
self.0 == *other as usize
}
}
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct AreaClient {
pub client: ClientId,

Loading…
Cancel
Save