ryot 0.2.2

MMORPG library based on the concepts of open tibia written in rust and bevy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, Error)]
pub enum Error {
    /// An [IO Error](std::io::Error)
    #[error("Could not read the file: {0}")]
    Io(#[from] std::io::Error),
    #[error("Could not serialize/deserialize file: {0}")]
    Serde(#[from] serde_json::Error),
    #[error("Could not decompress file: {0}")]
    Lzma(#[from] lzma_rs::error::Error),
    #[error("Invalid image: {0}")]
    Image(#[from] image::ImageError),
    #[error("Could not find sprite.")]
    SpriteNotFound,
}