1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Small struct and class adjastments

This commit is contained in:
GAMMACASE
2023-03-28 14:52:20 +03:00
committed by Nicholas Hastings
parent 2460e77afe
commit f0d39355d6
3 changed files with 10 additions and 7 deletions

View File

@ -78,7 +78,7 @@ public:
virtual ConCommandID FindFirstCommand() = 0;
virtual ConCommandID FindNextCommand(ConCommandID previous) = 0;
virtual void unk02() = 0;
virtual void DispatchConCommand(ConCommandID command, CCommandContext& ctx, CCommand& tok) = 0;
// Install a global change callback (to be called when any convar changes)
virtual void InstallGlobalChangeCallback(FnChangeCallback_t callback) = 0;

View File

@ -152,15 +152,15 @@ struct ConVarDataType_t
const char* name;
int data_size;
int primitive; // 1 for primitive types, 0 for others
void* GetStringValue;
void* CopyValue;
void* unk1;
void* InitValue;
void* CloneValue;
void* DestroyValue;
void* FromString;
void* ToString;
void* IsEqual;
void* Clamp;
const char* default_string_value;
const char* undefined_string_value;
ConVar* undefined_cvar;
};
struct ConVarDesc_t

View File

@ -28,8 +28,11 @@
class IConVar;
class CCommand;
typedef int ConVarID;
typedef int ConCommandID;
DECLARE_HANDLE_32BIT(ConVarID);
#define CONVAR_ID_INVALID ConVarID::MakeHandle( 0xFFFFFFFF )
DECLARE_HANDLE_32BIT(ConCommandID);
#define CONCOMMAND_ID_INVALID ConCommandID::MakeHandle( 0xFFFFFFFF )
//-----------------------------------------------------------------------------
// ConVar flags