mod builder;
mod data;
pub mod prelude {
pub use super::CustomGameData;
pub use super::CustomGameDataBuilder;
}
pub use builder::CustomGameDataBuilder;
pub use data::CustomGameData;
mod internal_helpers {
pub fn amethyst_error<T>(msg: T) -> amethyst::Error
where
T: ToString,
{
use amethyst::core::bundle::{Error as BundleError, ErrorKind};
amethyst::Error::Core(BundleError::from_kind(ErrorKind::Msg(
msg.to_string(),
)))
}
pub fn dispatcher_not_found<T>(name: T) -> amethyst::Error
where
T: ToString,
{
amethyst_error(format!("Dispatcher not found: {}", name.to_string()))
}
}