error traits

This commit is contained in:
2026-02-17 07:17:55 -08:00
parent 14649e4454
commit fc829b9956

View File

@@ -5,6 +5,12 @@ pub enum Error{
File(strafesnet_snf::Error),
Map(strafesnet_snf::map::Error),
}
impl std::fmt::Display for Error{
fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{
write!(f,"{self:?}")
}
}
impl std::error::Error for Error{}
pub enum Instruction{
Render{pos:glam::Vec3,angles:glam::Vec2},