Struct PokemonTrainerRange

Source
pub struct PokemonTrainerRange {
    pub entry: LvdEntry,
    pub boundary_min: Vector3,
    pub boundary_max: Vector3,
    pub trainers: Vec<Vector3>,
    pub platform_name: String,
    pub sub_name: String,
}
Expand description

The area of the stage where the Pokemon Trainer can run when attempting to follow the player-controlled pokemon characters. Alternative to PokemonTrainerPlatform, which instead utilizes flying platforms due to not having a good location on the stage itself for them.

Fields§

§entry: LvdEntry

The generic object data (name, subname, etc)

§boundary_min: Vector3

The lower bounds of the pokemon trainer area (usually the left side)

§boundary_max: Vector3

The upper bounds of the pokemon trainer area (usually the right side)

§trainers: Vec<Vector3>

A list of where all the trainers start when the match begins

§platform_name: String

The name of the platform the pokemon trainer stands on. This is used to ensure the trainer continues to stay on that platform even if it rudely attempts to leave them.

§sub_name: String

The subname of the platform the pokemon trainer stands on

Trait Implementations§

Source§

impl BinRead for PokemonTrainerRange

Source§

type Args = ()

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_options: &ReadOptions, __binrw_generated_var_arguments: Self::Args, ) -> BinResult<Self>

Read Self from the reader using the given ReadOptions and arguments.
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args: Default,

Read Self from the reader using default arguments.
Source§

fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader using the given arguments.
Source§

fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args, ) -> Result<(), Error>
where R: Read + Seek,

Runs any post-processing steps required to finalize construction of the object.
Source§

impl BinWrite for PokemonTrainerRange

Source§

type Args = ()

The type of arguments needed to be supplied in order to write this type, usually a tuple. Read more
Source§

fn write_options<W: Write + Seek>( &self, writer: &mut W, options: &WriteOptions, _: Self::Args, ) -> Result<(), Error>

Write the type to a writer, given the options on how to write it and the type-specific arguments
Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args: Default,

Write a type to a writer while assuming no arguments are needed.
Source§

fn write_with_args<W>( &self, writer: &mut W, args: Self::Args, ) -> Result<(), Error>
where W: Write + Seek,

Write the type to a writer while providing the default WriteOptions
Source§

impl Debug for PokemonTrainerRange

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl HasMagic for PokemonTrainerRange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.