Exemplo n.º 1
0
void restart_all				()
{
    if (strstr(Core.Params,"-keep_lua"))
        return;

    destroy_lua_wpn_params		();
    MainMenu()->DestroyInternal	(true);
    xr_delete					(g_object_factory);
    ai().script_engine().init	();
}
Exemplo n.º 2
0
void restart_all				()
{
	if (strstr(Core.Params,"-keep_lua"))
		return;

	destroy_lua_wpn_params		();
	MainMenu()->DestroyInternal	(true);
	xr_delete					(g_object_factory);
	ai().script_engine().init	();

#ifdef DEBUG
	ai().moving_objects().clear	();
#endif // DEBUG
}
Exemplo n.º 3
0
void clean_game_globals()
{
	destroy_lua_wpn_params							();
	// destroy ai space
	xr_delete										(g_ai_space);
	// destroy object factory
	xr_delete										(g_object_factory);
	// destroy monster squad global var
	xr_delete										(g_monster_squad);

	story_ids.clear									();
	spawn_story_ids.clear							();

	if(!g_dedicated_server)
	{
		CInfoPortion::DeleteSharedData					();
		CInfoPortion::DeleteIdToIndexData				();

		CEncyclopediaArticle::DeleteSharedData			();
		CEncyclopediaArticle::DeleteIdToIndexData		();

		CPhraseDialog::DeleteSharedData					();
		CPhraseDialog::DeleteIdToIndexData				();
		
		InventoryUtilities::DestroyShaders				();
	}
	CCharacterInfo::DeleteSharedData				();
	CCharacterInfo::DeleteIdToIndexData				();
	
	CSpecificCharacter::DeleteSharedData			();
	CSpecificCharacter::DeleteIdToIndexData			();

	CHARACTER_COMMUNITY::DeleteIdToIndexData		();
	CHARACTER_RANK::DeleteIdToIndexData				();
	CHARACTER_REPUTATION::DeleteIdToIndexData		();
	MONSTER_COMMUNITY::DeleteIdToIndexData			();


	//static shader for blood
	CEntityAlive::UnloadBloodyWallmarks				();
	CEntityAlive::UnloadFireParticles				();
	//очищение пам¤ти таблицы строк
	CStringTable::Destroy							();
	// ќчищение таблицы цветов
	CUIXmlInit::DeleteColorDefs						();
	// ќчищение таблицы идентификаторов рангов и отношений сталкеров
	InventoryUtilities::ClearCharacterInfoStrings	();

	xr_delete										(g_sound_collection_storage);
	
#ifdef DEBUG
	xr_delete										(g_profiler);
	release_smart_cast_stats						();
#endif

	RELATION_REGISTRY::clear_relation_registry		();

	dump_list_wnd									();
	dump_list_lines									();
	dump_list_sublines								();
	clean_wnd_rects									();
	xr_delete										(g_gameTaskXml);
	xr_delete										(g_uiSpotXml);
	dump_list_xmls									();
	DestroyUIGeom									();
}