#[repr(C, packed(1))]pub struct S2CData {
pub player: u8,
pub pause_request: u8,
pub gold: [u32; 8],
pub time: u32,
pub width: u8,
pub height: u8,
pub flag: [[u8; 29]; 40],
pub owner: [[u8; 29]; 40],
pub pop: [[u16; 29]; 40],
pub tile: [[u8; 29]; 40],
/* private fields */
}Expand description
Data structure a server transferred to a client.
Fields§
§player: u8Player you control.
pause_request: u8Pause request.
gold: [u32; 8]Gold counts.
time: u32Current time.
width: u8Width of the grid.
height: u8Height of the grid.
flag: [[u8; 29]; 40]Flag powers of the grid.
owner: [[u8; 29]; 40]Owner of each grid.
pop: [[u16; 29]; 40]Population of each grid.
tile: [[u8; 29]; 40]Population of each grid.
Implementations§
Trait Implementations§
impl AnyBitPattern for S2CData
impl Copy for S2CData
impl NoUninit for S2CData
Auto Trait Implementations§
impl Freeze for S2CData
impl RefUnwindSafe for S2CData
impl Send for S2CData
impl Sync for S2CData
impl Unpin for S2CData
impl UnwindSafe for S2CData
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.