Struct mila::LayeredFilesystem[][src]

pub struct LayeredFilesystem { /* fields omitted */ }

Implementations

impl LayeredFilesystem[src]

pub fn new(
    layers: Vec<String>,
    language: Language,
    game: Game
) -> Result<Self, LayeredFilesystemError>
[src]

pub fn list(
    &self,
    path: &str,
    glob: Option<&str>
) -> Result<Vec<String>, LayeredFilesystemError>
[src]

pub fn read(
    &self,
    path: &str,
    localized: bool
) -> Result<Vec<u8>, LayeredFilesystemError>
[src]

pub fn read_arc(
    &self,
    path: &str,
    localized: bool
) -> Result<HashMap<String, Vec<u8>>, LayeredFilesystemError>
[src]

pub fn read_archive(
    &self,
    path: &str,
    localized: bool
) -> Result<BinArchive, LayeredFilesystemError>
[src]

pub fn read_text_archive(
    &self,
    path: &str,
    localized: bool
) -> Result<TextArchive, LayeredFilesystemError>
[src]

pub fn read_bch_textures(
    &self,
    path: &str,
    localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
[src]

pub fn read_ctpk_textures(
    &self,
    path: &str,
    localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
[src]

pub fn read_cgfx_textures(
    &self,
    path: &str,
    localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
[src]

pub fn write(
    &self,
    path: &str,
    bytes: &[u8],
    localized: bool
) -> Result<(), LayeredFilesystemError>
[src]

pub fn write_archive(
    &self,
    path: &str,
    archive: &BinArchive,
    localized: bool
) -> Result<(), LayeredFilesystemError>
[src]

pub fn write_text_archive(
    &self,
    path: &str,
    archive: &TextArchive,
    localized: bool
) -> Result<(), LayeredFilesystemError>
[src]

Trait Implementations

impl Clone for LayeredFilesystem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.