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

Public Member Functions

 MemberBinder (const GameDataLookup &lookup)
 
template<class Sig >
void operator() (Fn< Sig > &member, std::string_view key)
 
void operator() (Address &member, std::string_view key)
 
template<class Sig >
void operator() (VirtualFn< Sig > &member, std::string_view key)
 
template<class T >
void operator() (Offset< T > &member, std::string_view key)
 
std::vector< std::string > TakeFailures ()
 

Detailed Description

Binds one member from a gamedata lookup and keeps what did not bind.

Definition at line 13 of file Bindings.cpp.

Constructor & Destructor Documentation

◆ MemberBinder()

VoltMod::MemberBinder::MemberBinder ( const GameDataLookup &  lookup)
inlineexplicit

Definition at line 16 of file Bindings.cpp.

Member Function Documentation

◆ operator()() [1/4]

void VoltMod::MemberBinder::operator() ( Address &  member,
std::string_view  key 
)
inline

Definition at line 24 of file Bindings.cpp.

References VoltMod::Function, VoltMod::Global, and VoltMod::ReadFile().

◆ operator()() [2/4]

template<class Sig >
void VoltMod::MemberBinder::operator() ( Fn< Sig > &  member,
std::string_view  key 
)
inline

Definition at line 19 of file Bindings.cpp.

References VoltMod::Function, and VoltMod::ReadFile().

◆ operator()() [3/4]

template<class T >
void VoltMod::MemberBinder::operator() ( Offset< T > &  member,
std::string_view  key 
)
inline

Definition at line 37 of file Bindings.cpp.

References VoltMod::Offset, and VoltMod::ReadFile().

◆ operator()() [4/4]

template<class Sig >
void VoltMod::MemberBinder::operator() ( VirtualFn< Sig > &  member,
std::string_view  key 
)
inline

Definition at line 30 of file Bindings.cpp.

References VoltMod::ReadFile(), and VoltMod::VTable.

◆ TakeFailures()

std::vector< std::string > VoltMod::MemberBinder::TakeFailures ( )
inline

What did not bind, as key: reason, in the order the members were bound.

Definition at line 43 of file Bindings.cpp.


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