Plasma Engine  2.0
Loading...
Searching...
No Matches
plResourceEvent Struct Reference

These events may be sent by a specific plResource or by the plResourceManager. More...

#include <Declarations.h>

Public Types

enum class  Type {
  ResourceExists , ResourceCreated , ResourceDeleted , ResourceContentUpdated ,
  ResourceContentUnloading , ResourcePriorityChanged
}
 

Public Attributes

Type m_Type
 
plResourcem_pResource = nullptr
 

Detailed Description

These events may be sent by a specific plResource or by the plResourceManager.

Member Enumeration Documentation

◆ Type

enum class plResourceEvent::Type
strong
Enumerator
ResourceExists 

Used to broadcast that a resource exists. Used to inform inspection tools which resources are currently existing. Triggered by plResourceManager::BroadcastExistsEvent().

ResourceCreated 

Sent whenever a new resource is added to the system.

ResourceDeleted 

Sent right before a resource gets deallocated.

ResourceContentUpdated 

Sent shortly after plResource::UpdateContent() has been called on a resource.

ResourceContentUnloading 

Resource is about to be unloaded, but still valid at this point.

Note
When a resource is 'reloaded' this is the important event to track. Every reload starts with an unload. The actual 'load' (UpdateContant) only happens on demand.
ResourcePriorityChanged 

Sent when the priority of a resource is modified.


The documentation for this struct was generated from the following file: