Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
907 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef OBJECT_HASH_H
  7. #define OBJECT_HASH_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class IPhysicsObjectPairHash
  12. {
  13. public:
  14. virtual ~IPhysicsObjectPairHash() {}
  15. virtual void AddObjectPair( void *pObject0, void *pObject1 ) = 0;
  16. virtual void RemoveObjectPair( void *pObject0, void *pObject1 ) = 0;
  17. virtual bool IsObjectPairInHash( void *pObject0, void *pObject1 ) = 0;
  18. virtual void RemoveAllPairsForObject( void *pObject0 ) = 0;
  19. virtual bool IsObjectInHash( void *pObject0 ) = 0;
  20. // Used to iterate over all pairs an object is part of
  21. virtual int GetPairCountForObject( void *pObject0 ) = 0;
  22. virtual int GetPairListForObject( void *pObject0, int nMaxCount, void **ppObjectList ) = 0;
  23. };
  24. #endif // OBJECT_HASH_H