|
VoltMod
C++23 framework for CS2 server plugins
|
#include <GameDataScanner.hpp>
Public Member Functions | |
| GameDataScanner (const GameDataDocument &file, const OriginalSlotLookup &originalOf, const ScriptBindingLookup &scriptOf) | |
| void | ResolveAll () |
| const GameDataEntry * | Find (std::string_view key) const |
| const std::vector< std::string > & | Failures () const |
| const GameDataRecord & | Record () const |
| void | LogSummary (std::string_view path) const |
Resolves every gamedata key against the loaded modules, once for the process.
Definition at line 40 of file GameDataScanner.hpp.
| VoltMod::GameDataScanner::GameDataScanner | ( | const GameDataDocument & | file, |
| const OriginalSlotLookup & | originalOf, | ||
| const ScriptBindingLookup & | scriptOf | ||
| ) |
file, originalOf and scriptOf must outlive the scanner.
Definition at line 71 of file GameDataScanner.cpp.
References VoltMod::Function, VoltMod::Global, VoltMod::Error::NotFound(), VoltMod::Offset, VoltMod::ReadFile(), and VoltMod::VTable.
|
inline |
key: reason for each entry that did not bind.
Definition at line 53 of file GameDataScanner.hpp.
| const GameDataEntry * VoltMod::GameDataScanner::Find | ( | std::string_view | key | ) | const |
Nullptr when the file does not have key.
Definition at line 119 of file GameDataScanner.cpp.
References VoltMod::ReadFile().
| void VoltMod::GameDataScanner::LogSummary | ( | std::string_view | path | ) | const |
Log the entry counts, and warn when the file was checked on another game build.
Definition at line 125 of file GameDataScanner.cpp.
References VoltMod::GameDataDocument::build, VoltMod::GameDataDocument::functions, VoltMod::GameBuild(), VoltMod::GameDataDocument::globals, VoltMod::Log::Info(), VoltMod::GameDataDocument::offsets, VoltMod::ReadFile(), VoltMod::GameDataDocument::Build::server, VoltMod::GameDataDocument::Build::verified, VoltMod::GameDataDocument::vtables, and VoltMod::Log::Warn().
|
inline |
Definition at line 55 of file GameDataScanner.hpp.
| void VoltMod::GameDataScanner::ResolveAll | ( | ) |
Definition at line 99 of file GameDataScanner.cpp.
References VoltMod::ReadFile().