示例#1
0
//////////////////////////////////////////////////////////////////////////
// update
//virtual 
void CsCore::update()
{
	// Should be handled in CsPackage. Look into doing it.
	processCreateResources();
	processLoadingResources();
	processLoadedResource();
	processUnloadingResources();
	processCallbacks();
}
示例#2
0
//////////////////////////////////////////////////////////////////////////
// update
//virtual 
void CsCore::update()
{
	// TODO: Remove these, all is handled in CsResource now!
	processCreateResources();
	processLoadingResources();
	processLoadedResource();
	processUnloadingResources();

	// Garbage collection.
	// TODO: Mark packages for clean up instead of just iterating over them.
	if( IsCollectingGarbage_ )
	{
		freeUnreferencedPackages();
	}
}
示例#3
0
//////////////////////////////////////////////////////////////////////////
// update
//virtual 
void CsCore::update()
{
	// TODO: Remove these, all is handled in CsResource now!
	processCreateResources();
	processLoadingResources();
	processLoadedResource();
	processUnloadingResources();


#ifdef PSY_SERVER
	{
		// Import everything in the import list.
		BcScopedLock< BcMutex > Lock( ContainerLock_ );
		CsResourceRef<> Handle;
		
		for( TImportListIterator Iter( ImportList_.begin() ); Iter != ImportList_.end(); ++Iter )
		{
			internalImportResource( (*Iter), Handle, NULL, BcTrue );
		}	
		
		ImportList_.clear();
	}
#endif
}