wowsunpack 0.31.0

Utility for interacting with World of Warships game assets
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum GameDataError {
    #[error(transparent)]
    Io(#[from] std::io::Error),
    #[error(transparent)]
    Vfs(#[from] vfs::VfsError),
    #[error("Unexpected GameParams data type")]
    InvalidGameParamsData,
    #[error(transparent)]
    Pickle(#[from] pickled::Error),
    #[error(transparent)]
    FileTree(#[from] crate::data::idx::IdxError),
    #[error("Build {build} not found in game directory")]
    BuildNotFound { build: u32 },
    #[error("res_packages directory not found")]
    ResPackagesNotFound,
    #[cfg(feature = "json")]
    #[error(transparent)]
    SerdeJson(#[from] serde_json::Error),
    #[cfg(feature = "cbor")]
    #[error(transparent)]
    SerdeCbor(#[from] serde_cbor::Error),
}