pub struct Horizon {
pub horizon_x: u16,
pub horizon_y: u16,
}Expand description
Packet to tell the server to resize the horizon for the client.
In theory this should expand the visible range for the client, in practice the official server appears to ignore these packets.
Fields§
§horizon_x: u16§horizon_y: u16Trait Implementations§
Source§impl<'de> DeserializeV5<'de> for Horizon
impl<'de> DeserializeV5<'de> for Horizon
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<Horizon> for ClientPacket
impl From<Horizon> for ClientPacket
Source§impl SerializeV5 for Horizon
impl SerializeV5 for Horizon
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for Horizon
Auto Trait Implementations§
impl Freeze for Horizon
impl RefUnwindSafe for Horizon
impl Send for Horizon
impl Sync for Horizon
impl Unpin for Horizon
impl UnsafeUnpin for Horizon
impl UnwindSafe for Horizon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more