Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AssetObjectQuery Struct Reference

Represents a query for asset objects in the resource manager. More...

Inherits IDisposable.

Public Member Functions

 AssetObjectQuery (Type type=null, bool? loaded=null)
 Initializes a new instance of the AssetObjectQuery struct. More...
 
void Dispose ()
 Disposes the AssetObjectQuery, releasing any resources it was holding. More...
 
bool IsMatch (AssetObject obj)
 Checks if the asset object matches the query. More...
 
bool IsMatch (AssetObjectState state)
 Checks if the asset object state matches the query. More...
 
bool IsMatch (Type assetType)
 Checks if the asset type matches the query. More...
 

Static Public Member Functions

static implicit operator AssetObjectQuery (Type type)
 Implicitly converts a Type to an AssetObjectQuery. More...
 

Public Attributes

bool? Loaded
 Indicates whether the asset is loaded. More...
 
object ResourceManagerStateObj
 The state object of the asset. This is used internally by the resource manager. More...
 
int ResourceManagerStateValue
 The state value of the asset. This is used internally by the resource manager. More...
 
Type Type
 The type of the asset. More...
 

Detailed Description

Represents a query for asset objects in the resource manager.

Constructor & Destructor Documentation

◆ AssetObjectQuery()

AssetObjectQuery.AssetObjectQuery ( Type  type = null,
bool?  loaded = null 
)
inline

Initializes a new instance of the AssetObjectQuery struct.

Member Function Documentation

◆ operator AssetObjectQuery()

static implicit AssetObjectQuery.operator AssetObjectQuery ( Type  type)
inlinestatic

Implicitly converts a Type to an AssetObjectQuery.

◆ IsMatch() [1/3]

bool AssetObjectQuery.IsMatch ( AssetObjectState  state)
inline

Checks if the asset object state matches the query.

◆ IsMatch() [2/3]

bool AssetObjectQuery.IsMatch ( Type  assetType)
inline

Checks if the asset type matches the query.

◆ IsMatch() [3/3]

bool AssetObjectQuery.IsMatch ( AssetObject  obj)
inline

Checks if the asset object matches the query.

◆ Dispose()

void AssetObjectQuery.Dispose ( )
inline

Disposes the AssetObjectQuery, releasing any resources it was holding.

Member Data Documentation

◆ Loaded

bool? AssetObjectQuery.Loaded

Indicates whether the asset is loaded.

◆ Type

Type AssetObjectQuery.Type

The type of the asset.

◆ ResourceManagerStateValue

int AssetObjectQuery.ResourceManagerStateValue

The state value of the asset. This is used internally by the resource manager.

◆ ResourceManagerStateObj

object AssetObjectQuery.ResourceManagerStateObj

The state object of the asset. This is used internally by the resource manager.