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

#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
 

Detailed Description

Resolves every gamedata key against the loaded modules, once for the process.

Definition at line 40 of file GameDataScanner.hpp.

Constructor & Destructor Documentation

◆ GameDataScanner()

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.

Member Function Documentation

◆ Failures()

const std::vector< std::string > & VoltMod::GameDataScanner::Failures ( ) const
inline

key: reason for each entry that did not bind.

Definition at line 53 of file GameDataScanner.hpp.

◆ Find()

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().

◆ LogSummary()

◆ Record()

const GameDataRecord & VoltMod::GameDataScanner::Record ( ) const
inline

Definition at line 55 of file GameDataScanner.hpp.

◆ ResolveAll()

void VoltMod::GameDataScanner::ResolveAll ( )

Definition at line 99 of file GameDataScanner.cpp.

References VoltMod::ReadFile().


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