Struct xc3_lib::bc::AnimationBinding
source · pub struct AnimationBinding {
pub unk1: BcList<()>,
pub unk2: u64,
pub animation: Animation,
pub bone_track_indices: BcList<i16>,
pub inner: AnimationBindingInner,
}Fields§
§unk1: BcList<()>§unk2: u64§animation: Animation§bone_track_indices: BcList<i16>The index of the track in animation for each bone
or -1 if no track is assigned.
inner: AnimationBindingInnerTrait Implementations§
source§impl BinRead for AnimationBinding
impl BinRead for AnimationBinding
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§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl Debug for AnimationBinding
impl Debug for AnimationBinding
source§impl Xc3Write for AnimationBinding
impl Xc3Write for AnimationBinding
§type Offsets<'offsets> = AnimationBindingOffsets<'offsets>
type Offsets<'offsets> = AnimationBindingOffsets<'offsets>
The type storing offset data to be used in Xc3WriteOffsets.
source§fn xc3_write<W: Write + Seek>(
&self,
writer: &mut W,
data_ptr: &mut u64
) -> Xc3Result<Self::Offsets<'_>>
fn xc3_write<W: Write + Seek>( &self, writer: &mut W, data_ptr: &mut u64 ) -> Xc3Result<Self::Offsets<'_>>
Write all fields and placeholder offsets
and set
data_ptr to the position after writing.
This should almost always be derived for non primitive types.source§fn should_write(&self) -> Option<bool>
fn should_write(&self) -> Option<bool>
Return
true if this type has no data and should not be written.Auto Trait Implementations§
impl RefUnwindSafe for AnimationBinding
impl Send for AnimationBinding
impl Sync for AnimationBinding
impl Unpin for AnimationBinding
impl UnwindSafe for AnimationBinding
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