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.

33 lines
795 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Expose things from pr_edict.cpp.
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #ifndef PR_EDICT_H
  8. #define PR_EDICT_H
  9. #include "edict.h"
  10. void InitializeEntityDLLFields( edict_t *pEdict );
  11. // If iForceEdictIndex is not -1, then it will return the edict with that index. If that edict index
  12. // is already used, it'll return null.
  13. edict_t *ED_Alloc( int iForceEdictIndex = -1 );
  14. void ED_Free( edict_t *ed );
  15. // Clear the FL_EDICT_FREE flag and the g_FreeEdicts bit.
  16. void ED_ClearFreeFlag( edict_t *pEdict );
  17. edict_t *EDICT_NUM(int n);
  18. int NUM_FOR_EDICT(const edict_t *e);
  19. void ED_AllowImmediateReuse();
  20. void ED_ClearFreeEdictList();
  21. #endif