pub struct EffFile {
pub effect_handles: Vec<EffectHandle>,
pub effect_group_elements: Vec<EffectGroupElement>,
pub effect_model_entries: Vec<EffectModelEntry>,
pub effect_handle_names: Vec<CString>,
pub effect_model_names: Vec<CString>,
pub parent_joint_names: Vec<CString>,
pub resource_data: Option<Vec<u8>>,
}
Expand description
The container type for the EFF file format.
Fields§
§effect_handles: Vec<EffectHandle>
Collection of effect handles.
effect_group_elements: Vec<EffectGroupElement>
Collection of effect group elements.
effect_model_entries: Vec<EffectModelEntry>
Collection of effect model entries.
effect_handle_names: Vec<CString>
Collection of effect handle names.
effect_model_names: Vec<CString>
Collection of effect model names.
parent_joint_names: Vec<CString>
Collection of parent joint names to emitter sets in effect group elements.
resource_data: Option<Vec<u8>>
Data buffer for the contained file resource.
Implementations§
Source§impl EffFile
impl EffFile
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> BinResult<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> BinResult<Self>
Reads the data from the given file path.
Sourcepub fn read<R: Read + Seek>(reader: &mut R) -> BinResult<Self>
pub fn read<R: Read + Seek>(reader: &mut R) -> BinResult<Self>
Reads the data from the given reader.
Sourcepub fn write<W: Write + Seek>(&self, writer: &mut W) -> BinResult<()>
pub fn write<W: Write + Seek>(&self, writer: &mut W) -> BinResult<()>
Writes the data to the given writer.
Trait Implementations§
Source§impl BinRead for EffFile
impl BinRead for EffFile
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 EffFile
impl BinWrite for EffFile
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 moreAuto Trait Implementations§
impl Freeze for EffFile
impl RefUnwindSafe for EffFile
impl Send for EffFile
impl Sync for EffFile
impl Unpin for EffFile
impl UnwindSafe for EffFile
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