Dota2Patcher
 
Загрузка...
Поиск...
Не найдено
Класс CSchemaSystem

#include <CSchemaSystem.h>

Открытые члены

optional< CSchemaSystemTypeScope * > type_scope (const string &scope_name) const
 
optional< CSchemaSystemTypeScope * > type_scope (const size_t scope_index) const
 
std::stringstream iterate_netvars (const string &class_name, const ClassDescription *class_description, const bool dump_to_file) const
 
size_t dump_netvars (const string &scope_name, const bool dump_to_file) const
 
size_t dump_netvars (const size_t scope_index, const bool dump_to_file) const
 
template<typename T >
optional< uintptr_t > get_netvar (const T &addr, const string &class_name, const string &netvar_name) const
 

Статические открытые данные

static std::unordered_map< string, std::unordered_map< std::string, int32_t > > g_netvars
 Global variable to store dumped NetVars.
 

Методы

◆ dump_netvars() [1/2]

size_t CSchemaSystem::dump_netvars ( const size_t  scope_index,
const bool  dump_to_file 
) const
inline

dump_netvars overload

Аргументы
scope_indexIndex a of scope. Will be converted to a scope_name and send to original dump_netvars

◆ dump_netvars() [2/2]

size_t CSchemaSystem::dump_netvars ( const string &  scope_name,
const bool  dump_to_file 
) const
inline

Dump NetVars to std::unordered_map and optionally to a file

Аргументы
scope_nameName of a scope. Ex: client.dll
dump_to_fileDump NetVars to files or not

◆ get_netvar()

template<typename T >
optional< uintptr_t > CSchemaSystem::get_netvar ( const T &  addr,
const string &  class_name,
const string &  netvar_name 
) const
inline

Get NetVar's offset for a class

Аргументы
addrPointer to a class instance (this)
class_nameName of the class. Ex: C_DOTA_BaseNPC
netvar_nameName of the netvar. Ex: m_iszUnitName
Возвращает
uintptr_t address of this + offset

◆ iterate_netvars()

std::stringstream CSchemaSystem::iterate_netvars ( const string &  class_name,
const ClassDescription class_description,
const bool  dump_to_file 
) const
inline

Iterate through a list of NetVars and save them to g_netvars

Аргументы
class_nameName of a class. Ex: C_DOTA_BaseNPC
class_descriptionPointer to a ClassDescription* class
dump_to_fileDump NetVars to files or not
Возвращает
A stringstream with a list of NetVars

◆ type_scope() [1/2]

optional< CSchemaSystemTypeScope * > CSchemaSystem::type_scope ( const size_t  scope_index) const
inline

type_scope overload

Аргументы
scope_indexIndex a of scope. Will be converted to scope_name and send to original dump_netvars

◆ type_scope() [2/2]

optional< CSchemaSystemTypeScope * > CSchemaSystem::type_scope ( const string &  scope_name) const
inline

Get type_scope

Аргументы
scope_nameName of a scope. Ex: client.dll
Возвращает
CSchemaSystemTypeScope pointer

Данные класса

◆ g_netvars

std::unordered_map<string, std::unordered_map<std::string, int32_t> > CSchemaSystem::g_netvars
inlinestatic

Global variable to store dumped NetVars.


Объявления и описания членов класса находятся в файле: