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

#include <EventTypes.hpp>

Static Public Member Functions

static ItemPurchase From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 
VoltMod::Team Team = VoltMod::Team::None
 
int Loadout = 0
 
std::string Weapon
 

Static Public Attributes

static constexpr std::string_view EventName = "item_purchase"
 

Detailed Description

Definition at line 1170 of file EventTypes.hpp.

Member Function Documentation

◆ From()

ItemPurchase VoltMod::ItemPurchase::From ( IGameEvent &  e)
static

Definition at line 1110 of file EventTypes.cpp.

References Loadout, VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::ItemPurchase::EventName = "item_purchase"
staticconstexpr

Definition at line 1172 of file EventTypes.hpp.

◆ Loadout

int VoltMod::ItemPurchase::Loadout = 0

Definition at line 1175 of file EventTypes.hpp.

Referenced by From().

◆ Slot

int VoltMod::ItemPurchase::Slot = -1

Definition at line 1173 of file EventTypes.hpp.

Referenced by From().

◆ Team

VoltMod::Team VoltMod::ItemPurchase::Team = VoltMod::Team::None

Definition at line 1174 of file EventTypes.hpp.

◆ Weapon

std::string VoltMod::ItemPurchase::Weapon

Definition at line 1176 of file EventTypes.hpp.


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