#include <CSchemaSystem.h>
|
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_index | Index 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_name | Name of a scope. Ex: client.dll |
dump_to_file | Dump 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
- Аргументы
-
addr | Pointer to a class instance (this) |
class_name | Name of the class. Ex: C_DOTA_BaseNPC |
netvar_name | Name 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_name | Name of a class. Ex: C_DOTA_BaseNPC |
class_description | Pointer to a ClassDescription* class |
dump_to_file | Dump NetVars to files or not |
- Возвращает
- A stringstream with a list of NetVars
◆ type_scope() [1/2]
type_scope overload
- Аргументы
-
scope_index | Index a of scope. Will be converted to scope_name and send to original dump_netvars |
◆ type_scope() [2/2]
◆ g_netvars
std::unordered_map<string, std::unordered_map<std::string, int32_t> > CSchemaSystem::g_netvars |
|
inlinestatic |
Global variable to store dumped NetVars.
Объявления и описания членов класса находятся в файле: