bevy_steam_kit 0.3.0

Steam for Bevy as opt-in features around one shared callback pump: lobbies, rich presence and friend-join requests (feature `lobby`), stats and achievements (`stats`), leaderboards (`leaderboards`), Web API tickets (`auth`), the friends list and invites (`friends`), the overlay (`overlay`), as Bevy messages, with a fake backend for tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! SteamID helpers shared by every feature.

/// Is `id` an individual (user) SteamID64 in the public universe?
/// Universe `id >> 56 == 1`, account type `(id >> 52) & 0xF == 1`, instance
/// `(id >> 32) & 0xFFFFF == 1`, account id `id as u32 != 0`.
pub fn is_individual_steam_id64(id: u64) -> bool {
    let universe = id >> 56;
    let account_type = (id >> 52) & 0xF;
    let instance = (id >> 32) & 0xF_FFFF;
    let account = id as u32;
    universe == 1 && account_type == 1 && instance == 1 && account != 0
}