pub struct GameInfo { /* private fields */ }Expand description
Owned identity of the game which loaded the plugin.
SCS only promises that the original C strings remain live during the initialization call. The framework copies them so every later callback can inspect the same metadata without extending a foreign pointer’s lifetime.
Implementations§
Source§impl GameInfo
impl GameInfo
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Human-facing game name supplied by the SDK as Rust text.
Invalid UTF-8 is replaced during initialization because the foreign allocation ceases to be valid when that call returns.
Sourcepub const fn schema_version(&self) -> GameSchemaVersion
pub const fn schema_version(&self) -> GameSchemaVersion
Game-specific telemetry schema supplied by the SDK.
This does not represent the telemetry API ABI or the public game patch.
Sourcepub const fn minimum_schema_for(
&self,
availability: GameSchemaAvailability,
) -> Option<GameSchemaVersion>
pub const fn minimum_schema_for( &self, availability: GameSchemaAvailability, ) -> Option<GameSchemaVersion>
Resolves one SDK descriptor, association, capability, or value history entry for the detected game.
Unknown game IDs return None: ETS2 and ATS use independent schema
histories, so applying either known game’s minimum to a third game would
silently invent compatibility evidence.
Sourcepub const fn supports(&self, availability: GameSchemaAvailability) -> bool
pub const fn supports(&self, availability: GameSchemaAvailability) -> bool
Whether the detected game schema satisfies one official availability record within the same schema-major family.
This is the same policy used by runtime registration preflight. It is public so application diagnostics and schema-driven UI can query channel, association, and enum-value history without reimplementing version or game-kind matching.