diff options
Diffstat (limited to 'engine/world.h')
| -rw-r--r-- | engine/world.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/engine/world.h b/engine/world.h new file mode 100644 index 0000000..f38d2b1 --- /dev/null +++ b/engine/world.h @@ -0,0 +1,38 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +// world.h +#ifndef WORLD_H +#define WORLD_H + +#ifdef _WIN32 +#pragma once +#endif + + +struct edict_t; +class ICollideable; + +void SV_ClearWorld (void); +// called after the world model has been loaded, before linking any entities + +void SV_SolidMoved( edict_t *pSolidEnt, ICollideable *pSolidCollide, const Vector *pPrevAbsOrigin, bool testSurroundingBoundsOnly ); +void SV_TriggerMoved( edict_t *pTriggerEnt, bool testSurroundingBoundsOnly ); + +// Needs to be called any time an entity changes origin, mins, maxs, or solid +// flags ent->v.modified +// sets ent->v.absmin and ent->v.absmax +// if touchtriggers, calls prog functions for the intersected triggers + +// This is to temporarily remove an object from the collision tree. +// Unlink returns a handle we have to use to relink +int SV_FastUnlink( edict_t *ent ); +void SV_FastRelink( edict_t *ent, int tempHandle ); + + +#endif // WORLD_H |