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

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

	return save.WriteFields( "CTank", this, m_SaveData, ARRAYSIZE(m_SaveData) );
}
예제 #3
0
파일: cbase.cpp 프로젝트: mittorn/hlwe_src
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;
}
예제 #4
0
파일: world.cpp 프로젝트: ET-NiK/amxxgroup
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;
}