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:

committed by
Nicholas Hastings

parent
2460e77afe
commit
f0d39355d6
@ -78,7 +78,7 @@ public:
|
|||||||
virtual ConCommandID FindFirstCommand() = 0;
|
virtual ConCommandID FindFirstCommand() = 0;
|
||||||
virtual ConCommandID FindNextCommand(ConCommandID previous) = 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)
|
// Install a global change callback (to be called when any convar changes)
|
||||||
virtual void InstallGlobalChangeCallback(FnChangeCallback_t callback) = 0;
|
virtual void InstallGlobalChangeCallback(FnChangeCallback_t callback) = 0;
|
||||||
|
@ -152,15 +152,15 @@ struct ConVarDataType_t
|
|||||||
const char* name;
|
const char* name;
|
||||||
int data_size;
|
int data_size;
|
||||||
int primitive; // 1 for primitive types, 0 for others
|
int primitive; // 1 for primitive types, 0 for others
|
||||||
void* GetStringValue;
|
void* InitValue;
|
||||||
void* CopyValue;
|
void* CloneValue;
|
||||||
void* unk1;
|
void* DestroyValue;
|
||||||
void* FromString;
|
void* FromString;
|
||||||
void* ToString;
|
void* ToString;
|
||||||
void* IsEqual;
|
void* IsEqual;
|
||||||
void* Clamp;
|
void* Clamp;
|
||||||
const char* default_string_value;
|
const char* default_string_value;
|
||||||
const char* undefined_string_value;
|
ConVar* undefined_cvar;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ConVarDesc_t
|
struct ConVarDesc_t
|
||||||
|
@ -28,8 +28,11 @@
|
|||||||
class IConVar;
|
class IConVar;
|
||||||
class CCommand;
|
class CCommand;
|
||||||
|
|
||||||
typedef int ConVarID;
|
DECLARE_HANDLE_32BIT(ConVarID);
|
||||||
typedef int ConCommandID;
|
#define CONVAR_ID_INVALID ConVarID::MakeHandle( 0xFFFFFFFF )
|
||||||
|
|
||||||
|
DECLARE_HANDLE_32BIT(ConCommandID);
|
||||||
|
#define CONCOMMAND_ID_INVALID ConCommandID::MakeHandle( 0xFFFFFFFF )
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// ConVar flags
|
// ConVar flags
|
||||||
|
Reference in New Issue
Block a user