1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

generated code for parsing game events

This commit is contained in:
Robin Appelman 2019-03-02 00:39:22 +01:00
commit cc7f9a48cd
18 changed files with 8518 additions and 64 deletions

View file

@ -5,9 +5,12 @@ pub use generated::*;
use crate::{Parse, ParseError, ParserState, Result, Stream};
mod classinfo;
mod generated;
mod stringtable;
pub mod classinfo;
pub mod generated;
pub mod stringtable;
pub mod voice;
pub mod bspdecal;
pub mod usermessage;
#[derive(Primitive, Debug)]
pub enum MessageType {
@ -46,8 +49,4 @@ impl Parse for MessageType {
let prop_type: Option<MessageType> = MessageType::from_u8(raw);
prop_type.ok_or(ParseError::InvalidMessageType(raw))
}
fn skip(stream: &mut Stream) -> Result<()> {
stream.skip(6).map_err(ParseError::from)
}
}