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 /mp/src/game/server/world.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 'mp/src/game/server/world.h')
| -rw-r--r-- | mp/src/game/server/world.h | 160 |
1 files changed, 80 insertions, 80 deletions
diff --git a/mp/src/game/server/world.h b/mp/src/game/server/world.h index a856614e..a8547d3c 100644 --- a/mp/src/game/server/world.h +++ b/mp/src/game/server/world.h @@ -1,80 +1,80 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: The worldspawn entity. This spawns first when each level begins.
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef WORLD_H
-#define WORLD_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-class CWorld : public CBaseEntity
-{
-public:
- DECLARE_CLASS( CWorld, CBaseEntity );
-
- CWorld();
- ~CWorld();
-
- DECLARE_SERVERCLASS();
-
- virtual int RequiredEdictIndex( void ) { return 0; } // the world always needs to be in slot 0
-
- static void RegisterSharedActivities( void );
- static void RegisterSharedEvents( void );
- virtual void Spawn( void );
- virtual void Precache( void );
- virtual bool KeyValue( const char *szKeyName, const char *szValue );
- virtual void DecalTrace( trace_t *pTrace, char const *decalName );
- virtual void VPhysicsCollision( int index, gamevcollisionevent_t *pEvent ) {}
- virtual void VPhysicsFriction( IPhysicsObject *pObject, float energy, int surfaceProps, int surfacePropsHit ) {}
-
- inline void GetWorldBounds( Vector &vecMins, Vector &vecMaxs )
- {
- VectorCopy( m_WorldMins, vecMins );
- VectorCopy( m_WorldMaxs, vecMaxs );
- }
-
- inline float GetWaveHeight() const
- {
- return (float)m_flWaveHeight;
- }
-
- bool GetDisplayTitle() const;
- bool GetStartDark() const;
-
- void SetDisplayTitle( bool display );
- void SetStartDark( bool startdark );
-
- bool IsColdWorld( void );
-
-private:
- DECLARE_DATADESC();
-
- string_t m_iszChapterTitle;
-
- CNetworkVar( float, m_flWaveHeight );
- CNetworkVector( m_WorldMins );
- CNetworkVector( m_WorldMaxs );
- CNetworkVar( float, m_flMaxOccludeeArea );
- CNetworkVar( float, m_flMinOccluderArea );
- CNetworkVar( float, m_flMinPropScreenSpaceWidth );
- CNetworkVar( float, m_flMaxPropScreenSpaceWidth );
- CNetworkVar( string_t, m_iszDetailSpriteMaterial );
-
- // start flags
- CNetworkVar( bool, m_bStartDark );
- CNetworkVar( bool, m_bColdWorld );
- bool m_bDisplayTitle;
-};
-
-
-CWorld* GetWorldEntity();
-extern const char *GetDefaultLightstyleString( int styleIndex );
-
-
-#endif // WORLD_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: The worldspawn entity. This spawns first when each level begins. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef WORLD_H +#define WORLD_H +#ifdef _WIN32 +#pragma once +#endif + + +class CWorld : public CBaseEntity +{ +public: + DECLARE_CLASS( CWorld, CBaseEntity ); + + CWorld(); + ~CWorld(); + + DECLARE_SERVERCLASS(); + + virtual int RequiredEdictIndex( void ) { return 0; } // the world always needs to be in slot 0 + + static void RegisterSharedActivities( void ); + static void RegisterSharedEvents( void ); + virtual void Spawn( void ); + virtual void Precache( void ); + virtual bool KeyValue( const char *szKeyName, const char *szValue ); + virtual void DecalTrace( trace_t *pTrace, char const *decalName ); + virtual void VPhysicsCollision( int index, gamevcollisionevent_t *pEvent ) {} + virtual void VPhysicsFriction( IPhysicsObject *pObject, float energy, int surfaceProps, int surfacePropsHit ) {} + + inline void GetWorldBounds( Vector &vecMins, Vector &vecMaxs ) + { + VectorCopy( m_WorldMins, vecMins ); + VectorCopy( m_WorldMaxs, vecMaxs ); + } + + inline float GetWaveHeight() const + { + return (float)m_flWaveHeight; + } + + bool GetDisplayTitle() const; + bool GetStartDark() const; + + void SetDisplayTitle( bool display ); + void SetStartDark( bool startdark ); + + bool IsColdWorld( void ); + +private: + DECLARE_DATADESC(); + + string_t m_iszChapterTitle; + + CNetworkVar( float, m_flWaveHeight ); + CNetworkVector( m_WorldMins ); + CNetworkVector( m_WorldMaxs ); + CNetworkVar( float, m_flMaxOccludeeArea ); + CNetworkVar( float, m_flMinOccluderArea ); + CNetworkVar( float, m_flMinPropScreenSpaceWidth ); + CNetworkVar( float, m_flMaxPropScreenSpaceWidth ); + CNetworkVar( string_t, m_iszDetailSpriteMaterial ); + + // start flags + CNetworkVar( bool, m_bStartDark ); + CNetworkVar( bool, m_bColdWorld ); + bool m_bDisplayTitle; +}; + + +CWorld* GetWorldEntity(); +extern const char *GetDefaultLightstyleString( int styleIndex ); + + +#endif // WORLD_H |