#[repr(C)]pub struct SelectBattleCommand {
pub selecting_player: CorePlayer,
pub activatable_cards: Vec<CardPosition<true, false, true>>,
pub attackable_cards: Vec<(CardPosition<true, false, false>, i8)>,
pub can_enter_m2: bool,
pub can_enter_ep: bool,
}Fields§
§selecting_player: CorePlayer§activatable_cards: Vec<CardPosition<true, false, true>>§attackable_cards: Vec<(CardPosition<true, false, false>, i8)>§can_enter_m2: bool§can_enter_ep: boolImplementations§
Source§impl SelectBattleCommand
impl SelectBattleCommand
pub fn into_message(self) -> Message
Trait Implementations§
Source§impl BinRead for SelectBattleCommand
impl BinRead for SelectBattleCommand
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for SelectBattleCommand
impl BinWrite for SelectBattleCommand
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§impl Clone for SelectBattleCommand
impl Clone for SelectBattleCommand
Source§fn clone(&self) -> SelectBattleCommand
fn clone(&self) -> SelectBattleCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectBattleCommand
impl Debug for SelectBattleCommand
Source§impl From<SelectBattleCommand> for Message
impl From<SelectBattleCommand> for Message
Source§fn from(value: SelectBattleCommand) -> Self
fn from(value: SelectBattleCommand) -> Self
Converts to this type from the input type.
Source§impl From<SelectBattleCommand> for Message
impl From<SelectBattleCommand> for Message
Source§fn from(value: SelectBattleCommand) -> Self
fn from(value: SelectBattleCommand) -> Self
Converts to this type from the input type.
Source§impl GameMessage for SelectBattleCommand
impl GameMessage for SelectBattleCommand
fn mask(&mut self)
fn waiting_for(&self) -> Option<CorePlayer>
fn should_mask(&self, _player: CorePlayer) -> bool
Source§impl Message for SelectBattleCommand
impl Message for SelectBattleCommand
fn message_type() -> MessageType
impl PureMessage for SelectBattleCommand
Source§impl<'m> TryFrom<&'m Message> for &'m SelectBattleCommand
impl<'m> TryFrom<&'m Message> for &'m SelectBattleCommand
Auto Trait Implementations§
impl Freeze for SelectBattleCommand
impl RefUnwindSafe for SelectBattleCommand
impl Send for SelectBattleCommand
impl Sync for SelectBattleCommand
impl Unpin for SelectBattleCommand
impl UnsafeUnpin for SelectBattleCommand
impl UnwindSafe for SelectBattleCommand
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