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

24 lines
651 B
C++

//========= Copyright © Valve Corporation, All rights reserved. ============//
#ifndef PHYSICS_SOFTBODY_HDR
#define PHYSICS_SOFTBODY_HDR
#include "mathlib/softbodyenvironment.h"
#ifndef CLIENT_DLL
#error Softbodies should only be used on client
#endif
extern CSoftbodyEnvironment g_SoftbodyEnvironment; // in physics_softbody.cpp
extern ConVar softbody_debug; // in studio.cpp
class CSoftbodyProcess : public CAutoGameSystemPerFrame
{
public:
CSoftbodyProcess() : CAutoGameSystemPerFrame( "SoftbodyProcess" ) {}
virtual void OnRestore() OVERRIDE;
virtual void Update( float frametime ) OVERRIDE;
virtual void PostRender() OVERRIDE;
};
#endif