mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 06:38:00 +08:00
Minor code tweaks
This commit is contained in:
1 parent
24d6dd2058
commit
5fa3fbeaeb
6 files changed
+12
-7
No files matched your search
@@ -136,7 +136,7 @@ public:
|
||||
virtual void FireGameEvent( IGameEvent *event ) = 0;
|
||||
};
|
||||
|
||||
abstract_class IGameEventManager2 : public IBaseInterface, public IToolGameEventAPI
|
||||
abstract_class IGameEventManager2 : public IBaseInterface, IToolGameEventAPI
|
||||
{
|
||||
public:
|
||||
virtual ~IGameEventManager2( void ) {};
|
||||
|
||||
@@ -255,7 +255,7 @@ public:
|
||||
// Find a keyValue, create it if it is not found.
|
||||
// Set bCreate to true to create the key if it doesn't already exist (which ensures a valid pointer will be returned)
|
||||
KeyValues *FindKey( const char *keyName, bool bCreate );
|
||||
KeyValues *FindKey( const char *keyName ) const;
|
||||
const KeyValues *FindKey( const char *keyName ) const;
|
||||
KeyValues *FindKey( HKeySymbol keySymbol ) const;
|
||||
KeyValues *FindKeyAndParent( const char *keyName, KeyValues **pParent, bool );
|
||||
bool FindAndDeleteSubKey( const char *keyName );
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
class CFormatStringElement;
|
||||
class IFormatOutputStream;
|
||||
|
||||
template<size_t MAX_SIZE, bool AllowHeapAllocation>
|
||||
class CBufferStringGrowable;
|
||||
|
||||
/*
|
||||
Main idea of CBufferString is to provide the base class for the CBufferStringGrowable wich implements stack allocation
|
||||
with the ability to convert to the heap allocation if allowed.
|
||||
|
||||
@@ -173,7 +173,7 @@ struct CSplitScreenSlot
|
||||
#define FCVAR_VCONSOLE_FUZZY_MATCHING (1<<23)
|
||||
|
||||
#define FCVAR_SERVER_CAN_EXECUTE (1<<24) // the server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CBaseClientState::ProcessStringCmd.
|
||||
#define FCVAR_MISSING4 (1<<25)
|
||||
#define FCVAR_CLIENT_CAN_EXECUTE (1<<25) // Assigned to commands to let clients execute them
|
||||
#define FCVAR_SERVER_CANNOT_QUERY (1<<26) // If this is set, then the server is not allowed to query this cvar's value (via IServerPluginHelpers::StartQueryCvarValue).
|
||||
#define FCVAR_VCONSOLE_SET_FOCUS (1<<27)
|
||||
#define FCVAR_CLIENTCMD_CAN_EXECUTE (1<<28) // IVEngineClient::ClientCmd is allowed to execute this command.
|
||||
|
||||
@@ -37,10 +37,10 @@ abstract_class IParsingErrorListener
|
||||
};
|
||||
|
||||
#define PARSING_FLAG_NONE (0)
|
||||
#define PARSING_FLAG_ERROR_ASSERT (1 << 0) // Triggers debug assertion on parsing errors
|
||||
#define PARSING_FLAG_INTERNAL_ASSERT_TRIGGERED (1 << 1) // Internal flag that is set when assertion is triggered
|
||||
#define PARSING_FLAG_EMIT_WARNING (1 << 2) // Emits global console warning on parsing errors
|
||||
#define PARSING_FLAG_INTERNAL_WARNING_EMITTED (1 << 3) // Internal flag that is set when global warning is emitted
|
||||
#define PARSING_FLAG_ERROR_ASSERT (1 << 0) // Triggers debug assertion on parsing errors, the default state
|
||||
#define PARSING_FLAG_SKIP_ASSERT (1 << 1) // Internal flag that is set when assertion is triggered, could also be used to prevent debug assertions
|
||||
#define PARSING_FLAG_EMIT_WARNING (1 << 2) // Emits global console warning on parsing errors, the default state
|
||||
#define PARSING_FLAG_SKIP_WARNING (1 << 3) // Internal flag that is set when global warning is emitted, could also be used to prevent warning messages
|
||||
#define PARSING_FLAG_SILENT (1 << 4) // Won't call callback when parsing errors are encountered
|
||||
#define PARSING_FLAG_ERROR_IF_EMPTY (1 << 5) // Emits parsing error if the input string was empty or NULL
|
||||
#define PARSING_FLAG_UNK006 (1 << 6)
|
||||
|
||||
@@ -982,4 +982,6 @@ public:
|
||||
typedef CVariantBase<CVariantDefaultAllocator> CVariant;
|
||||
typedef CVariantBase<CEntityVariantAllocator> CEntityVariant;
|
||||
|
||||
typedef CVariant variant_t;
|
||||
|
||||
#endif // CVARIANT_H
|
||||
Reference in new issue
Block a user