Data structures for CSGO Game State Integration payload.
Documentation is available here.
Using axum
:
```rust use std::net::SocketAddr;
use axum::{extract::Json, routing::post, Router};
async fn root(Json(payload): Json
println!("SteamID of the provider: {}", steam_id_provider);
}
async fn main() { let app = Router::new().route("/", post(root)); let address = SocketAddr::from(([127, 0, 0, 1], 3000));
axum::Server::bind(&address)
.serve(app.into_make_service())
.await
.unwrap();
} ```
Check out csgo-gsi-builder
if
you want to build game state integration cfg files.
It has not been tested in Danger Zone, nor Hostage Rescue modes.