VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::Args::PlayerOrSteamId Struct Reference

#include <Args.hpp>

Public Attributes

Player * Online = nullptr
 
int64_t SteamId = 0
 

Static Public Attributes

static constexpr ArgKind Kind = ArgKind::PlayerOrSteamId
 

Detailed Description

An online player when the token resolves to one, otherwise the bare SteamID64.

Resolution is tried first, so @me and a name fragment both work; a numeric token that matches nobody online (or nobody the caller may act on) falls back to SteamId with Online left null, which is how an offline player is addressed.

Definition at line 103 of file Args.hpp.

Member Data Documentation

◆ Kind

constexpr ArgKind VoltMod::Args::PlayerOrSteamId::Kind = ArgKind::PlayerOrSteamId
staticconstexpr

Definition at line 105 of file Args.hpp.

◆ Online

Player* VoltMod::Args::PlayerOrSteamId::Online = nullptr

Definition at line 106 of file Args.hpp.

Referenced by VoltMod::BindPlayerOrSteamId().

◆ SteamId

int64_t VoltMod::Args::PlayerOrSteamId::SteamId = 0

Definition at line 107 of file Args.hpp.


The documentation for this struct was generated from the following file: