error traits
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user