source_sdk_2013 0.1.0-alpha.8

Higher-level bindings for the Source SDK.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Shorthands for the engine's identifiers of players.

use crate::players::UserId;

/// The user ID `id`.
///
/// For tests only.
///
/// # Panics
///
/// If `id` is 0, which the engine never assigns.
pub fn user(id: u16) -> UserId {
	UserId::new(id).unwrap()
}