nze_tiled 0.1.0

Loads maps made with the map editor Tiled
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Holds an enum of error types that can occur from loading tilemaps

#[derive(Debug)]
pub enum TiledError {
    /// This error occurs if the file cannot be opened, or if it cannot be parsed as plaintext
    FileReadError(String, String),
    /// This error occurs if data in tiled cannot be parsed into the appropriate type, may indicate a bug in the llibrary
    ParseError(String),
    /// Similar to 'ParseError' but occurs when the parsed data is stored in bytes
    ParseBytesError(),
    /// Can happen if a type is selected for a property but it isn't supported by this library yet, or if an option is selcted that this library doesn't recognize (maybe because Tiled has been updated)
    UnsupportedType(),
    /// Occurs when a poly shape does not have enough points to match the amount indicated
    MissingPoint(),
}