Expand description
Helper library for the CS:GO Game State Integration (GSI) API.
Best used with the tokio async ecosystem.
§Simple Example
use csgo_gsi::{GSIConfigBuilder, GSIServer, Subscription};
#[tokio::main]
async fn main() {
let config = GSIConfigBuilder::new("csgo-gsi Example")
.subscribe_multiple(Subscription::UNRESTRICTED)
.build();
let mut server = GSIServer::new(config, 31337);
server.add_listener(|update| println!("Got an update {:#?}", update));
server
.run()
.await
.expect("server didn't start");
}
Re-exports§
pub use update::Update;
Modules§
- update
- all information that can be contained in a GSI update
Structs§
- GSIConfig
- Game State Integration configuration
- GSIConfig
Builder - Builder struct for GSIConfig
- GSIServer
- a server that listens for GSI updates
Enums§
- Error
- any error caused by this library
- Subscription
- which pieces of information to subscribe to