#[repr(transparent)]pub struct MoveCommandCode(pub i32);Tuple Fields§
§0: i32Implementations§
Source§impl MoveCommandCode
impl MoveCommandCode
pub const MOVE_UP: Self
pub const MOVE_RIGHT: Self
pub const MOVE_DOWN: Self
pub const MOVE_LEFT: Self
pub const MOVE_UPRIGHT: Self
pub const MOVE_DOWNRIGHT: Self
pub const MOVE_DOWNLEFT: Self
pub const MOVE_UPLEFT: Self
pub const MOVE_RANDOM: Self
pub const MOVE_TOWARDS_HERO: Self
pub const MOVE_AWAY_FROM_HERO: Self
pub const MOVE_FORWARD: Self
pub const FACE_UP: Self
pub const FACE_RIGHT: Self
pub const FACE_DOWN: Self
pub const FACE_LEFT: Self
pub const TURN_90_DEGREE_RIGHT: Self
pub const TURN_90_DEGREE_LEFT: Self
pub const TURN_180_DEGREE: Self
pub const TURN_90_DEGREE_RANDOM: Self
pub const FACE_RANDOM_DIRECTION: Self
pub const FACE_HERO: Self
pub const FACE_AWAY_FROM_HERO: Self
pub const WAIT: Self
pub const BEGIN_JUMP: Self
pub const END_JUMP: Self
pub const LOCK_FACING: Self
pub const UNLOCK_FACING: Self
pub const INCREASE_MOVEMENT_SPEED: Self
pub const DECREASE_MOVEMENT_SPEED: Self
pub const INCREASE_MOVEMENT_FREQUENCE: Self
pub const DECREASE_MOVEMENT_FREQUENCE: Self
pub const SWITCH_ON: Self
pub const SWITCH_OFF: Self
pub const CHANGE_GRAPHIC: Self
pub const PLAY_SOUND_EFFECT: Self
pub const WALK_EVERYWHERE_ON: Self
pub const WALK_EVERYWHERE_OFF: Self
pub const STOP_ANIMATION: Self
pub const START_ANIMATION: Self
pub const INCREASE_TRANSP: Self
pub const DECREASE_TRANSP: Self
Trait Implementations§
Source§impl Clone for MoveCommandCode
impl Clone for MoveCommandCode
impl Copy for MoveCommandCode
Source§impl Debug for MoveCommandCode
impl Debug for MoveCommandCode
Source§impl Default for MoveCommandCode
impl Default for MoveCommandCode
impl Eq for MoveCommandCode
Source§impl From<i32> for MoveCommandCode
impl From<i32> for MoveCommandCode
Source§impl Hash for MoveCommandCode
impl Hash for MoveCommandCode
Source§impl IntoOwned for MoveCommandCode
impl IntoOwned for MoveCommandCode
Source§type Owned = MoveCommandCode
type Owned = MoveCommandCode
The same shape, owning its data.
Source§fn into_owned(self) -> Self
fn into_owned(self) -> Self
Copy anything still borrowed, so the result outlives the input buffer.
Source§impl<'lcf> LcfField<'lcf> for MoveCommandCode
impl<'lcf> LcfField<'lcf> for MoveCommandCode
Source§fn field_default(engine: Engine) -> Self
fn field_default(engine: Engine) -> Self
The value this field holds when its chunk is absent and the schema gives no explicit
default. Read more
Source§fn read(
data: &'lcf [u8],
ctx: &mut Ctx<'_>,
owner: &'static str,
id: u32,
) -> Self
fn read( data: &'lcf [u8], ctx: &mut Ctx<'_>, owner: &'static str, id: u32, ) -> Self
Decode from a chunk payload sliced to exactly this field’s bytes. Read more
Source§fn lcf_size(&self, engine: Engine) -> u32
fn lcf_size(&self, engine: Engine) -> u32
Encoded length in bytes, which the two-pass writer emits as the chunk’s length prefix.
Source§fn write<S: Sink>(&self, sink: &mut S, engine: Engine) -> Result<(), S::Error>
fn write<S: Sink>(&self, sink: &mut S, engine: Engine) -> Result<(), S::Error>
Append the encoded payload. Read more
Source§fn lcf_differs(&self, other: &Self) -> boolwhere
Self: PartialEq,
fn lcf_differs(&self, other: &Self) -> boolwhere
Self: PartialEq,
Whether
self differs from other in its written form; the writer elides a field equal to
its default. Plain !=, except floats compare by bits: -0.0 == 0.0, so != would drop a
stored -0.0 and break the round trip.Source§fn element_count(&self) -> u32
fn element_count(&self) -> u32
Number of elements, for array-like fields. Read more
Source§impl Ord for MoveCommandCode
impl Ord for MoveCommandCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MoveCommandCode
impl PartialEq for MoveCommandCode
Source§impl PartialOrd for MoveCommandCode
impl PartialOrd for MoveCommandCode
impl StructuralPartialEq for MoveCommandCode
Auto Trait Implementations§
impl Freeze for MoveCommandCode
impl RefUnwindSafe for MoveCommandCode
impl Send for MoveCommandCode
impl Sync for MoveCommandCode
impl Unpin for MoveCommandCode
impl UnsafeUnpin for MoveCommandCode
impl UnwindSafe for MoveCommandCode
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