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.

38 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // world.h
  9. #ifndef WORLD_H
  10. #define WORLD_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. struct edict_t;
  15. class ICollideable;
  16. void SV_ClearWorld (void);
  17. // called after the world model has been loaded, before linking any entities
  18. void SV_SolidMoved( edict_t *pSolidEnt, ICollideable *pSolidCollide, const Vector *pPrevAbsOrigin, bool testSurroundingBoundsOnly );
  19. void SV_TriggerMoved( edict_t *pTriggerEnt, bool testSurroundingBoundsOnly );
  20. // Needs to be called any time an entity changes origin, mins, maxs, or solid
  21. // flags ent->v.modified
  22. // sets ent->v.absmin and ent->v.absmax
  23. // if touchtriggers, calls prog functions for the intersected triggers
  24. // This is to temporarily remove an object from the collision tree.
  25. // Unlink returns a handle we have to use to relink
  26. int SV_FastUnlink( edict_t *ent );
  27. void SV_FastRelink( edict_t *ent, int tempHandle );
  28. #endif // WORLD_H