void vHavokAiNavMeshResource::Init()
{
	FlagAsUnLoaded();
	SetResourceFlag(VRESOURCEFLAG_ALLOWUNLOAD);
	SetResourceFlag(VRESOURCEFLAG_AUTOUNLOAD);
	SetResourceFlag(VRESOURCEFLAG_AUTODELETE);
}
Ejemplo n.º 2
0
// -------------------------------------------------------------------------- //
// Constructor/ Destructor                                                 
// -------------------------------------------------------------------------- //
VFmodSoundResource::VFmodSoundResource(VFmodSoundResourceManager *pManager, int iUsageFlags) : VManagedResource(pManager)
{
  m_iSysMem = 0;
  m_iSoundFlags = iUsageFlags;
  m_pSound = NULL;

  if (IsStreaming()) // since unique
    SetResourceFlag(VRESOURCEFLAG_AUTODELETE);
}
Ejemplo n.º 3
0
 /// \brief
 ///   Sets the "loaded" flag of the resource, so IsLoaded() returns TRUE. Useful for some
 ///   implementations of custom resources.
 inline void FlagAsLoaded()    {m_fLastTimeUsed = GetGlobalTime();SetResourceFlag(VRESOURCEFLAG_ISLOADED);}
Ejemplo n.º 4
0
VPrefab::VPrefab(VResourceManager *pParentManager) : VManagedResource(pParentManager)
{
  m_iSize = 0;
  SetResourceFlag(VRESOURCEFLAG_ALLOWUNLOAD);
}