source2-demo 0.4.2

Dota 2 / Deadlock / CS2 replay parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::HashMap;
use std::rc::Rc;

pub(crate) struct GameEventDefinition {
    pub(crate) name: String,
    pub(crate) keys: Vec<Rc<GameEventKey>>,
    pub(crate) name_to_key: HashMap<String, Rc<GameEventKey>>,
}

#[derive(Debug)]
pub(crate) struct GameEventKey {
    pub(crate) id: i32,
    pub(crate) name: String,
}