Struct BNPCInstanceObject

Source
pub struct BNPCInstanceObject {
Show 32 fields pub parent_data: NPCInstanceObject, pub name_id: u32, pub drop_item: u32, pub sense_range_rate: f32, pub level: u16, pub active_type: u8, pub pop_interval: u8, pub pop_rate: u8, pub pop_event: u8, pub link_group: u8, pub link_family: u8, pub link_range: u8, pub link_count_limit: u8, pub nonpop_init_zone: u8, pub invalid_repop: u8, pub link_parent: u8, pub link_override: u8, pub link_reply: u8, pub nonpop: u8, pub relative_positions: RelativePositions, pub horizontal_pop_range: f32, pub vertical_pop_range: f32, pub bnpc_base_data: i32, pub repop_id: u8, pub bnpc_ran_id: u8, pub territory_range: u16, pub bound_instance_id: u32, pub fate_layout_label_id: u32, pub normal_ai: u32, pub server_path_id: u32, pub equipment_id: u32, pub customize_id: u32,
}

Fields§

§parent_data: NPCInstanceObject§name_id: u32§drop_item: u32§sense_range_rate: f32§level: u16§active_type: u8§pop_interval: u8§pop_rate: u8§pop_event: u8§link_group: u8§link_family: u8§link_range: u8§link_count_limit: u8§nonpop_init_zone: u8§invalid_repop: u8§link_parent: u8§link_override: u8§link_reply: u8§nonpop: u8§relative_positions: RelativePositions§horizontal_pop_range: f32§vertical_pop_range: f32§bnpc_base_data: i32§repop_id: u8§bnpc_ran_id: u8§territory_range: u16§bound_instance_id: u32§fate_layout_label_id: u32§normal_ai: u32§server_path_id: u32§equipment_id: u32§customize_id: u32

Trait Implementations§

Source§

impl BinRead for BNPCInstanceObject

Source§

type Args<'__binrw_generated_args_lifetime> = ()

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_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given [Endian] and arguments. Read more
§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
§

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

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

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

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
§

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

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
§

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

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl Debug for BNPCInstanceObject

Source§

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

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

impl ReadEndian for BNPCInstanceObject

Source§

const ENDIAN: EndianKind

The endianness of the type.

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more