UwUHax/netvars.h
2021-08-27 18:58:23 +07:00

25 lines
597 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
typedef struct
{
char szTableName[256];
char szPropName[256];
RecvVarProxyFn SavedProxy;
} Oldproxy_t;
class Netvarmanager
{
public:
~Netvarmanager(void);
void Init();
int GetOffset(const char *tableName, const char *propName);
private:
int Get_Prop(const char *tableName, const char *propName, RecvProp **prop = 0);
int Get_Prop(RecvTable *recvTable, const char *propName, RecvProp **prop = 0);
RecvTable *GetTable(const char *tableName);
std::vector<RecvTable*> m_tables;
std::vector<Oldproxy_t> m_savedproxy;
};
extern Netvarmanager g_Netvarmanager;