1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/public/vphysics/object_hash.h
2013-06-26 15:22:04 -07:00

30 lines
923 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef OBJECT_HASH_H
#define OBJECT_HASH_H
#ifdef _WIN32
#pragma once
#endif
class IPhysicsObjectPairHash
{
public:
virtual ~IPhysicsObjectPairHash() {}
virtual void AddObjectPair( void *pObject0, void *pObject1 ) = 0;
virtual void RemoveObjectPair( void *pObject0, void *pObject1 ) = 0;
virtual bool IsObjectPairInHash( void *pObject0, void *pObject1 ) = 0;
virtual void RemoveAllPairsForObject( void *pObject0 ) = 0;
virtual bool IsObjectInHash( void *pObject0 ) = 0;
// Used to iterate over all pairs an object is part of
virtual int GetPairCountForObject( void *pObject0 ) = 0;
virtual int GetPairListForObject( void *pObject0, int nMaxCount, void **ppObjectList ) = 0;
};
#endif // OBJECT_HASH_H