Example #1
0
int CBaseEntity::Save(CSave &save)
{
	if(save.WriteEntVars("ENTVARS", pev))
		return save.WriteFields("BASE", this, m_SaveData, ARRAYSIZE(m_SaveData));

	return 0;
}
Example #2
0
int CTank::Save( CSave &save )
{
	if ( !CBaseMonster::Save(save) )
		return 0;

	return save.WriteFields( "CTank", this, m_SaveData, ARRAYSIZE(m_SaveData) );
}
Example #3
0
int CGlobalState::Save( CSave &save )
{
	int i;
	globalentity_t *pEntity;

	if ( !save.WriteFields( "GLOBAL", this, m_SaveData, ARRAYSIZE(m_SaveData) ) )
		return 0;
	
	pEntity = m_pList;
	for ( i = 0; i < m_listCount && pEntity; i++ )
	{
		if ( !save.WriteFields( "GENT", pEntity, gGlobalEntitySaveData, ARRAYSIZE(gGlobalEntitySaveData) ) )
			return 0;

		pEntity = pEntity->pNext;
	}
	
	return 1;
}
Example #4
0
int CBaseEntity::Save( CSave &save )
{
	int res;

	if ( save.WriteEntVars( "ENTVARS", pev ) )
	{
		res = save.WriteFields( "BASE", this, m_SaveData, ARRAYSIZE(m_SaveData) );

		//LLAPb begin
		if (res)
		{
			//Find function "SAVE", store an array, returned by it
		}
		//LLAPb end
	}

	return res;
}