mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 10:34:11 +02:00
game event list
This commit is contained in:
parent
722afaeffa
commit
abe9418a3b
2 changed files with 56 additions and 8 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use std::collections::HashMap;
|
||||
use bitstream_reader::{BitRead};
|
||||
|
||||
use crate::{ParseError, Result};
|
||||
|
||||
|
|
@ -17,15 +18,17 @@ pub struct GameEventEntry {
|
|||
pub kind: GameEventValueType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(BitRead, Debug, Clone, Copy, PartialEq)]
|
||||
#[discriminant_bits = 3]
|
||||
pub enum GameEventValueType {
|
||||
String,
|
||||
Float,
|
||||
Long,
|
||||
Short,
|
||||
Byte,
|
||||
Boolean,
|
||||
Local,
|
||||
None = 0,
|
||||
String = 1,
|
||||
Float = 2,
|
||||
Long = 3,
|
||||
Short = 4,
|
||||
Byte = 5,
|
||||
Boolean = 6,
|
||||
Local = 7,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue