|
VoltMod
C++23 framework for CS2 server plugins
|
#include <GameDataTable.hpp>
Inheritance diagram for VoltMod::GameDataTable:Public Member Functions | |
| GameDataTable (std::string_view path, const OriginalSlotLookup &originalOf={}, const ScriptBindingLookup &scriptOf={}) | |
| bool | Ready () const |
| GameDataLocation | Lookup (GameDataSection sections, std::string_view key) override |
Additional Inherited Members | |
Protected Member Functions inherited from VoltMod::IPluginGameData | |
| ~IPluginGameData ()=default | |
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.
|
explicit |
Read and resolve path. originalOf reads a slot another module already hooked.
Definition at line 15 of file GameDataTable.cpp.
References VoltMod::Log::Error(), VoltMod::Strings::Join(), VoltMod::ReadFile(), VoltMod::Json::ReadFile(), and VoltMod::WriteGameDataRecord().
|
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::ReadFile().
|
inline |
False when the file could not be read.
Definition at line 25 of file GameDataTable.hpp.