dota-gsi 0.5.0

Game State Integration with Dota 2 in Rust. Provides a server that listens for events sent by Dota 2.
Documentation
1
2
3
4
5
6
7
8
9
/// Compare two Dota 2 game states to produce game events
///
/// This provides a [`Diffable`] trait implemented for game [`crate::components`].
use crate::event::GameEvent;

/// Diffable trait to compare a game component with a newer one
pub trait Diffable {
    fn diff<'a>(&'a self, new: &'a Self) -> Vec<GameEvent>;
}