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

#include <EventTypes.hpp>

Static Public Member Functions

static OpenCrateInstr From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 player entindex
 
int Subject = 0
 crate entindex
 
std::string Type
 type of crate (metal, wood, or paradrop)
 

Static Public Attributes

static constexpr std::string_view EventName = "open_crate_instr"
 

Detailed Description

Definition at line 1312 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1241 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::OpenCrateInstr::EventName = "open_crate_instr"
staticconstexpr

Definition at line 1314 of file EventTypes.hpp.

◆ Slot

int VoltMod::OpenCrateInstr::Slot = -1

player entindex

Definition at line 1315 of file EventTypes.hpp.

Referenced by From().

◆ Subject

int VoltMod::OpenCrateInstr::Subject = 0

crate entindex

Definition at line 1316 of file EventTypes.hpp.

◆ Type

std::string VoltMod::OpenCrateInstr::Type

type of crate (metal, wood, or paradrop)

Definition at line 1317 of file EventTypes.hpp.


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