Expand description
Futures-enabled bindings to a tiny portion of the Steamworks API.
You will probably want to keep the official Steamworks Documentation open while reading these API docs, as it contains a lot of information which is not documented here.
The Client::init
function will initialize the Steamworks API, and provide the Client
object, which provides the Steamworks API functionality. Note that for initialization to
succeed, the Steam client needs to be running and you’ll probably need to create a
steam_appid.txt
file; see
this section for the full details.
§Example
use std::env;
use steamworks::Client;
// Set the App ID which is used when initializing the Steamworks API
unsafe { env::set_var("SteamAppId", "233610"); }
// Initialize the Steamworks API
let client = Client::init()?;
// We can now use the client to access Steamworks API functionality
let app_id = client.app_id();