diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/vcollide_parse.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/vcollide_parse.h')
| -rw-r--r-- | sp/src/public/vcollide_parse.h | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/sp/src/public/vcollide_parse.h b/sp/src/public/vcollide_parse.h index 2c712263..675c4569 100644 --- a/sp/src/public/vcollide_parse.h +++ b/sp/src/public/vcollide_parse.h @@ -1,68 +1,68 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef VCOLLIDE_PARSE_H
-#define VCOLLIDE_PARSE_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "vphysics_interface.h"
-
-struct solid_t
-{
- int index;
- char name[512];
- char parent[512];
- char surfaceprop[512];
- Vector massCenterOverride;
- objectparams_t params;
-};
-
-struct fluid_t
-{
- int index;
- char surfaceprop[512];
-
- fluidparams_t params;
-
- fluid_t() {}
- fluid_t( fluid_t const& src ) : params(src.params)
- {
- index = src.index;
- }
-};
-
-//-----------------------------------------------------------------------------
-// Purpose: Pass this into the parser to handle the keys that vphysics does not
-// parse.
-//-----------------------------------------------------------------------------
-class IVPhysicsKeyHandler
-{
-public:
- virtual void ParseKeyValue( void *pData, const char *pKey, const char *pValue ) = 0;
- virtual void SetDefaults( void *pData ) = 0;
-};
-
-
-class IVPhysicsKeyParser
-{
-public:
- virtual ~IVPhysicsKeyParser() {}
-
- virtual const char *GetCurrentBlockName( void ) = 0;
- virtual bool Finished( void ) = 0;
- virtual void ParseSolid( solid_t *pSolid, IVPhysicsKeyHandler *unknownKeyHandler ) = 0;
- virtual void ParseFluid( fluid_t *pFluid, IVPhysicsKeyHandler *unknownKeyHandler ) = 0;
- virtual void ParseRagdollConstraint( constraint_ragdollparams_t *pConstraint, IVPhysicsKeyHandler *unknownKeyHandler ) = 0;
- virtual void ParseSurfaceTable( int *table, IVPhysicsKeyHandler *unknownKeyHandler ) = 0;
- virtual void ParseCustom( void *pCustom, IVPhysicsKeyHandler *unknownKeyHandler ) = 0;
- virtual void ParseVehicle( vehicleparams_t *pVehicle, IVPhysicsKeyHandler *unknownKeyHandler ) = 0;
- virtual void SkipBlock( void ) = 0;
-};
-
-#endif // VCOLLIDE_PARSE_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef VCOLLIDE_PARSE_H +#define VCOLLIDE_PARSE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "vphysics_interface.h" + +struct solid_t +{ + int index; + char name[512]; + char parent[512]; + char surfaceprop[512]; + Vector massCenterOverride; + objectparams_t params; +}; + +struct fluid_t +{ + int index; + char surfaceprop[512]; + + fluidparams_t params; + + fluid_t() {} + fluid_t( fluid_t const& src ) : params(src.params) + { + index = src.index; + } +}; + +//----------------------------------------------------------------------------- +// Purpose: Pass this into the parser to handle the keys that vphysics does not +// parse. +//----------------------------------------------------------------------------- +class IVPhysicsKeyHandler +{ +public: + virtual void ParseKeyValue( void *pData, const char *pKey, const char *pValue ) = 0; + virtual void SetDefaults( void *pData ) = 0; +}; + + +class IVPhysicsKeyParser +{ +public: + virtual ~IVPhysicsKeyParser() {} + + virtual const char *GetCurrentBlockName( void ) = 0; + virtual bool Finished( void ) = 0; + virtual void ParseSolid( solid_t *pSolid, IVPhysicsKeyHandler *unknownKeyHandler ) = 0; + virtual void ParseFluid( fluid_t *pFluid, IVPhysicsKeyHandler *unknownKeyHandler ) = 0; + virtual void ParseRagdollConstraint( constraint_ragdollparams_t *pConstraint, IVPhysicsKeyHandler *unknownKeyHandler ) = 0; + virtual void ParseSurfaceTable( int *table, IVPhysicsKeyHandler *unknownKeyHandler ) = 0; + virtual void ParseCustom( void *pCustom, IVPhysicsKeyHandler *unknownKeyHandler ) = 0; + virtual void ParseVehicle( vehicleparams_t *pVehicle, IVPhysicsKeyHandler *unknownKeyHandler ) = 0; + virtual void SkipBlock( void ) = 0; +}; + +#endif // VCOLLIDE_PARSE_H |