1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 20:46:03 +08:00

Initial changes for Left 4 Dead 2.

* Added/removed various functions from the following interfaces: IVEngineServer, IServerGameDLL, IServerGameClients, IFilesystem, and IConVar
* Added new functions to ConVar for setting Color values
* Updated SendProp structure with unknown member
* Recompiled tier1 static library for Windows and Linux
* Fixed up some tier0 exports in public/tier0/dbg.h
* Rebuilt tier0 import libary for Windows
* Replaced tier0_i486.so and vstdlib_i486.so with the newly renamed versions: tier0_linux.so and vstdlib_linux.so

--HG--
rename : lib/linux/tier0_i486.so => lib/linux/tier0_linux.so
rename : lib/linux/vstdlib_i486.so => lib/linux/vstdlib_linux.so
This commit is contained in:
Scott Ehlert
2009-10-28 21:16:05 -05:00
parent cd122aa43b
commit f77a985f91
19 changed files with 105 additions and 97 deletions

View File

@ -925,6 +925,16 @@ void ConVar::InternalSetIntValue( int nValue )
}
}
//-----------------------------------------------------------------------------
// Purpose:
// Input : *value -
//-----------------------------------------------------------------------------
void ConVar::InternalSetColorValue( Color cValue )
{
int color = cValue.GetRawColor();
InternalSetIntValue( color );
}
//-----------------------------------------------------------------------------
// Purpose: Private creation
//-----------------------------------------------------------------------------
@ -999,6 +1009,16 @@ void ConVar::SetValue( int value )
var->InternalSetIntValue( value );
}
//-----------------------------------------------------------------------------
// Purpose:
// Input : value -
//-----------------------------------------------------------------------------
void ConVar::SetValue( Color value )
{
ConVar *var = ( ConVar * )m_pParent;
var->InternalSetColorValue( value );
}
//-----------------------------------------------------------------------------
// Purpose: Reset to default value
//-----------------------------------------------------------------------------
@ -1052,6 +1072,7 @@ public:
virtual void SetValue( const char *pValue ) {}
virtual void SetValue( float flValue ) {}
virtual void SetValue( int nValue ) {}
virtual void SetValue( Color cValue ) {}
virtual const char *GetName( void ) const { return ""; }
virtual bool IsFlagSet( int nFlags ) const { return false; }
};