1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-07 09:43:40 +08:00

Swap IGameEvent Set overloads (#185)

This commit is contained in:
xen 2023-12-14 16:42:03 +02:00 committed by GitHub
parent 4669402a4d
commit c345e8b5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,14 +119,14 @@ public:
virtual void SetFloat( const GameEventKeySymbol_t &keySymbol, float value ) = 0;
virtual void SetString( const GameEventKeySymbol_t &keySymbol, const char *value ) = 0;
virtual void SetPtr( const GameEventKeySymbol_t &keySymbol, void *value ) = 0;
virtual void SetEntity(const GameEventKeySymbol_t &keySymbol, CEntityInstance *value) = 0;
virtual void SetEntity( const GameEventKeySymbol_t &keySymbol, CEntityIndex value ) = 0;
virtual void SetEntity( const GameEventKeySymbol_t &keySymbol, CEntityInstance *value ) = 0;
// Also sets the _pawn key
virtual void SetPlayer( const GameEventKeySymbol_t &keySymbol, CPlayerSlot value ) = 0;
// Also sets the _pawn key (Expects pawn entity to be passed)
virtual void SetPlayer( const GameEventKeySymbol_t &keySymbol, CEntityInstance *pawn ) = 0;
// Also sets the _pawn key
virtual void SetPlayer( const GameEventKeySymbol_t &keySymbol, CPlayerSlot value ) = 0;
// Expects pawn entity to be passed, will set the controller entity as a controllerKeyName
// and pawn entity as a pawnKeyName.