ezEngine  Milestone 9
ezResourceEvent Struct Reference

These events may be sent by a specific ezResource or by the ezResourceManager. More...

#include <Declarations.h>

Public Types

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

Public Attributes

Type m_Type
 
const ezResourcem_pResource = nullptr
 

Detailed Description

These events may be sent by a specific ezResource or by the ezResourceManager.

Member Enumeration Documentation

◆ Type

enum ezResourceEvent::Type
strong
Enumerator
ResourceExists 

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

ResourceCreated 

Sent whenever a new resource is added to the system.

ResourceDeleted 

Sent right before a resource gets deallocated.

ResourceContentUpdated 

Sent shortly after ezResource::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: