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 &originalSlots, const ScriptBindingLookup &scriptBindings)
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 & originalSlots,
const ScriptBindingLookup & scriptBindings )

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.

◆ LogSummary()

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::GameBuild(), VoltMod::Log::Info(), and VoltMod::Log::Warn().

◆ 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.


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