Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Quantum.AssetObject Class Reference

A base class for all Quantum asset objects. More...

Inheritance diagram for Quantum.AssetObject:
Quantum.ILogSource Quantum.SimulationConfig Quantum.SystemsConfig

Public Member Functions

virtual void Disposed (IResourceManager resourceManager, Native.Allocator allocator)
 Called when the asset object is disposed. More...
 
virtual void Loaded (IResourceManager resourceManager, Native.Allocator allocator)
 Called when the asset object is loaded. More...
 
virtual void Reset ()
 Resets the asset object. More...
 

Static Public Member Functions

static AssetObject Create (Type t)
 Creates a new instance of the specified type. More...
 
static T Create< T > ()
 Creates a new instance of the specified type. More...
 
static T Create< T > (Action< T > init)
 Creates a new instance of the specified type and initializes it. More...
 

Public Attributes

AssetObjectIdentifier Identifier
 The identifier of the asset object. More...
 
AssetObject Settings => this
 Gets the asset object settings. More...
 

Properties

AssetGuid Guid [get, set]
 The GUID of the asset object. More...
 
string Path [get, set]
 The path of the asset object. Optional. More...
 

Detailed Description

A base class for all Quantum asset objects.

Member Function Documentation

◆ Loaded()

virtual void Quantum.AssetObject.Loaded ( IResourceManager  resourceManager,
Native.Allocator  allocator 
)
inlinevirtual

Called when the asset object is loaded.

Parameters
resourceManagerThe resource manager.
allocatorThe allocator.

Reimplemented in Quantum.SimulationConfig.

◆ Disposed()

virtual void Quantum.AssetObject.Disposed ( IResourceManager  resourceManager,
Native.Allocator  allocator 
)
inlinevirtual

Called when the asset object is disposed.

Parameters
resourceManagerThe resource manager.
allocatorThe allocator.

◆ Create< T >() [1/2]

static T Quantum.AssetObject.Create< T > ( )
inlinestatic

Creates a new instance of the specified type.

Template Parameters
TThe type of the asset object.
Returns
A new instance of the specified type.
Type Constraints
T :AssetObject 

◆ Create()

static AssetObject Quantum.AssetObject.Create ( Type  t)
inlinestatic

Creates a new instance of the specified type.

Parameters
tThe type of the asset object.
Returns
A new instance of the specified type.

◆ Create< T >() [2/2]

static T Quantum.AssetObject.Create< T > ( Action< T >  init)
inlinestatic

Creates a new instance of the specified type and initializes it.

Template Parameters
TThe type of the asset object.
Parameters
initThe initialization action.
Returns
A new instance of the specified type.
Type Constraints
T :AssetObject 

◆ Reset()

virtual void Quantum.AssetObject.Reset ( )
inlinevirtual

Resets the asset object.

Member Data Documentation

◆ Identifier

AssetObjectIdentifier Quantum.AssetObject.Identifier

The identifier of the asset object.

◆ Settings

AssetObject Quantum.AssetObject.Settings => this

Gets the asset object settings.

Property Documentation

◆ Guid

AssetGuid Quantum.AssetObject.Guid
getset

The GUID of the asset object.

◆ Path

string Quantum.AssetObject.Path
getset

The path of the asset object. Optional.