Team Fortress 2 Source Code as on 22/4/2020
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.

43 lines
975 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef BASEOBJECT_SHARED_H
  8. #define BASEOBJECT_SHARED_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tf_shareddefs.h"
  13. #if defined( CLIENT_DLL )
  14. #define CBaseObject C_BaseObject
  15. #endif
  16. class CBaseObject;
  17. typedef CHandle<CBaseObject> ObjectHandle;
  18. struct BuildPoint_t
  19. {
  20. // If this is true, then objects are parented to the attachment point instead of
  21. // parented to the entity's abs origin + angles. That way, they'll move if the
  22. // attachment point animates.
  23. bool m_bPutInAttachmentSpace;
  24. int m_iAttachmentNum;
  25. ObjectHandle m_hObject;
  26. bool m_bValidObjects[ OBJ_LAST ];
  27. };
  28. #define TF_OBJ_GROUND_CLEARANCE 32
  29. // Shared header file for players
  30. #if defined( CLIENT_DLL )
  31. #include "c_baseobject.h"
  32. #else
  33. #include "tf_obj.h"
  34. #endif
  35. #endif // BASEOBJECT_SHARED_H