rustial-engine 0.0.1

Framework-agnostic 2.5D map engine for rustial
Documentation
//! Terrain error types.

use thiserror::Error;

/// Errors that can occur during terrain operations.
#[derive(Debug, Clone, Error)]
pub enum TerrainError {
    /// Failed to decode elevation data.
    #[error("decode error: {0}")]
    Decode(String),
    /// Network error fetching elevation tiles.
    #[error("network error: {0}")]
    Network(String),
    /// The requested format is not supported.
    #[error("unsupported format: {0}")]
    UnsupportedFormat(String),
    /// Generic error.
    #[error("{0}")]
    Other(String),
}