bevy-steamworks
This crate provides a Bevy plugin for integrating with the Steamworks SDK.
Installation
Add the following to your Cargo.toml:
[]
= "0.16"
The steamworks crate comes bundled with the redistributable dynamic libraries of a compatible version of the SDK. Currently it's v158a.
If you wish to enable serde support add the following:
[]
= { = "0.16", = ["serde"] }
Usage
To add the plugin to your app, simply add the SteamworksPlugin to your
App. This will require the AppId provided to you by Valve for initialization.
use *;
use *;
The plugin adds Client as a Bevy ECS resource, which can be
accessed like any other resource in Bevy. The client implements Send and Sync
and can be used to make requests via the SDK from any of Bevy's threads.
The plugin will automatically call SingleClient::run_callbacks on the Bevy
every tick in the First schedule, so there is no need to run it manually.
All callbacks are forwarded as Messages and can be listened to in a
Bevy idiomatic way:
use *;
use *;
Bevy Version Supported
| Bevy Version | bevy_steamworks |
|---|---|
| 0.18 | 0.16 |
| 0.17 | 0.15 |
| 0.16 | 0.14 |
| 0.15 | 0.13 |
| 0.14 | 0.12 |
| 0.13 | 0.10, 0.11 |
| 0.12 | 0.9 |
| 0.11 | 0.8 |
| 0.10 | 0.7 |
| 0.9 | 0.6 |
| 0.8 | 0.5 |
| 0.7 | 0.4 |
| 0.6 | 0.2, 0.3 |
| 0.5 | 0.1 |