VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::GameDataTable Class Referencefinal

#include <GameDataTable.hpp>

Inheritance diagram for VoltMod::GameDataTable:

Public Member Functions

 GameDataTable (std::string_view path, const OriginalSlotLookup &originalSlots={}, const ScriptBindingLookup &scriptBindings={})
bool Ready () const
GameDataLocation Lookup (GameDataSection sections, std::string_view key) override

Additional Inherited Members

Protected Member Functions inherited from VoltMod::IPluginGameData
 ~IPluginGameData ()=default

Detailed Description

The process's one gamedata resolution, made at host load and served to every plugin. What did not bind is logged here once; each plugin's services report it again as unavailable.

Definition at line 17 of file GameDataTable.hpp.

Constructor & Destructor Documentation

◆ GameDataTable()

VoltMod::GameDataTable::GameDataTable ( std::string_view path,
const OriginalSlotLookup & originalSlots = {},
const ScriptBindingLookup & scriptBindings = {} )
explicit

Read and resolve path. originalSlots reads a slot another module already hooked.

Definition at line 15 of file GameDataTable.cpp.

References VoltMod::Log::Error(), VoltMod::Strings::Join(), VoltMod::Json::ReadFile(), and VoltMod::WriteGameDataRecord().

Member Function Documentation

◆ Lookup()

GameDataLocation VoltMod::GameDataTable::Lookup ( GameDataSection sections,
std::string_view name )
overridevirtual

What the host resolved for name, when sections admits the section holding it.

Implements VoltMod::IPluginGameData.

Definition at line 42 of file GameDataTable.cpp.

References VoltMod::GameDataEntry::Address, VoltMod::GameDataEntry::Kind, VoltMod::GameDataEntry::Reason, VoltMod::GameDataEntry::Sections, and VoltMod::GameDataEntry::Value.

◆ Ready()

bool VoltMod::GameDataTable::Ready ( ) const
inline

False when the file could not be read.

Definition at line 25 of file GameDataTable.hpp.

Referenced by VoltMod::Host::Start().


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