Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Assets.AssetReference Class Reference

An asset reference. More...

Inheritance diagram for SiliconStudio.Assets.AssetReference:
SiliconStudio.Core.Serialization.ITypedContentReference IEquatable< AssetReference > SiliconStudio.Core.Serialization.IContentReference SiliconStudio.Assets.AssetReference< T >

Public Member Functions

bool Equals (AssetReference other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (AssetReference left, AssetReference right)
 Implements the ==. More...
 
static bool operator!= (AssetReference left, AssetReference right)
 Implements the !=. More...
 
static AssetReference New (Type referenceType, Guid id, UFile location)
 Tries to parse an asset reference in the format "GUID:Location". More...
 
static bool TryParse (string assetReferenceText, out Guid guid, out UFile location)
 Tries to parse an asset reference in the format "GUID:Location". More...
 
static bool TryParse (Type referenceType, string assetReferenceText, out AssetReference assetReference)
 Tries to parse an asset reference in the format "GUID:Location". More...
 

Properties

Guid Id [get]
 Gets or sets the unique identifier of the reference asset. More...
 
string Location [get]
 Gets or sets the location of the asset. More...
 
abstract Type Type [get]
 
- Properties inherited from SiliconStudio.Core.Serialization.ITypedContentReference
Type Type [get]
 Gets the type of this content reference. More...
 
- Properties inherited from SiliconStudio.Core.Serialization.IContentReference
Guid Id [get]
 Gets the asset unique identifier. More...
 
string Location [get]
 Gets the location. More...
 

Detailed Description

An asset reference.

Definition at line 15 of file AssetReference.cs.

Member Function Documentation

bool SiliconStudio.Assets.AssetReference.Equals ( AssetReference  other)

Definition at line 57 of file AssetReference.cs.

override bool SiliconStudio.Assets.AssetReference.Equals ( object  obj)

Definition at line 64 of file AssetReference.cs.

override int SiliconStudio.Assets.AssetReference.GetHashCode ( )

Definition at line 71 of file AssetReference.cs.

References SiliconStudio.Core.IO.UPath.GetHashCode().

static AssetReference SiliconStudio.Assets.AssetReference.New ( Type  referenceType,
Guid  id,
UFile  location 
)
static

Tries to parse an asset reference in the format "GUID:Location".

Parameters
referenceTypeThe referenceType.
idThe identifier.
locationThe location.
Returns
true if parsing was successful, false otherwise.

Definition at line 118 of file AssetReference.cs.

static bool SiliconStudio.Assets.AssetReference.operator!= ( AssetReference  left,
AssetReference  right 
)
static

Implements the !=.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 96 of file AssetReference.cs.

static bool SiliconStudio.Assets.AssetReference.operator== ( AssetReference  left,
AssetReference  right 
)
static

Implements the ==.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 85 of file AssetReference.cs.

override string SiliconStudio.Assets.AssetReference.ToString ( )

Definition at line 102 of file AssetReference.cs.

static bool SiliconStudio.Assets.AssetReference.TryParse ( string  assetReferenceText,
out Guid  guid,
out UFile  location 
)
static

Tries to parse an asset reference in the format "GUID:Location".

Parameters
assetReferenceTextThe asset reference.
guidThe unique identifier.
locationThe location.
Returns
true if parsing was successful, false otherwise.
Exceptions
System.ArgumentNullExceptionassetReferenceText

Definition at line 134 of file AssetReference.cs.

Referenced by SiliconStudio.Assets.PackageReference.TryParse().

static bool SiliconStudio.Assets.AssetReference.TryParse ( Type  referenceType,
string  assetReferenceText,
out AssetReference  assetReference 
)
static

Tries to parse an asset reference in the format "GUID:Location".

Parameters
referenceType
assetReferenceTextThe asset reference.
assetReferenceThe reference.
Returns
true if parsing was successful, false otherwise.

Definition at line 161 of file AssetReference.cs.

Property Documentation

Guid SiliconStudio.Assets.AssetReference.Id
get

Gets or sets the unique identifier of the reference asset.

The unique identifier of the reference asset..

Definition at line 37 of file AssetReference.cs.

string SiliconStudio.Assets.AssetReference.Location
get

Gets or sets the location of the asset.

The location.

Definition at line 50 of file AssetReference.cs.

abstract Type SiliconStudio.Assets.AssetReference.Type
get

Definition at line 109 of file AssetReference.cs.


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