use thiserror::Error;
#[cfg(feature = "client")]
pub mod draw;
pub mod objects;
pub mod textures;
#[derive(Debug, Error)]
#[error("The model you are trying to load has empty data.")]
pub struct NoDataError;
#[derive(Debug, Error)]
pub enum EngineStartError {
#[error(
"Your device does not fulfill the required specification to run this application:\n{0}"
)]
RequirementError(String),
#[error("You can only initialize this game engine one single time.")]
EngineInitialized,
#[error("Failed to initialize drawing backend:\n{0}")]
#[cfg(feature = "client")]
DrawingBackendError(anyhow::Error),
#[error("Could not start the game engine for some reason:\n{0}")]
Other(String),
}