csgo-2018-source/game/client/physics.h
2021-07-24 21:11:47 -07:00

34 lines
888 B
C

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: insulates client DLL from dependencies on vphysics
//
// $NoKeywords: $
//=============================================================================//
#ifndef PHYSICS_H
#define PHYSICS_H
#ifdef _WIN32
#pragma once
#endif
#include "interface.h"
#include "physics_shared.h"
struct objectparams_t;
struct solid_t;
// HACKHACK: Make this part of IClientSystem somehow???
extern bool PhysicsDLLInit( CreateInterfaceFn physicsFactory );
extern void PhysicsReset();
extern void PhysicsSimulate();
extern float PhysGetSyncCreateTime();
extern void VPhysicsShadowDataChanged( bool bCreate, C_BaseEntity *pEntity );
void PhysAddShadow( C_BaseEntity *pEntity );
void PhysRemoveShadow( C_BaseEntity *pEntity );
void PhysSetPredictionCommandNum( int iCommandNum );
#endif // PHYSICS_H