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.

26 lines
884 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Contains the set of functions for manipulating entity hierarchies.
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef HIERARCHY_H
  8. #define HIERARCHY_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "utlvector.h"
  13. class CBaseEntity;
  14. void UnlinkFromParent( CBaseEntity *pRemove );
  15. void TransferChildren( CBaseEntity *pOldParent, CBaseEntity *pNewParent );
  16. void LinkChild( CBaseEntity *pParent, CBaseEntity *pChild );
  17. void UnlinkAllChildren( CBaseEntity *pParent );
  18. int GetAllChildren( CBaseEntity *pParent, CUtlVector<CBaseEntity *> &list );
  19. bool EntityIsParentOf( CBaseEntity *pParent, CBaseEntity *pEntity );
  20. int GetAllInHierarchy( CBaseEntity *pParent, CUtlVector<CBaseEntity *> &list );
  21. #endif // HIERARCHY_H