![]() |
Paradox Game Engine
v1.0.0 beta06
|
A reference to a local package loaded into the same PackageSession. More...
Public Member Functions | |
PackageReference () | |
Initializes a new instance of the PackageReference class. More... | |
PackageReference (Guid id, UFile location) | |
Initializes a new instance of the PackageReference class. More... | |
PackageReference | Clone () |
Clones this instance. More... | |
override string | ToString () |
Static Public Member Functions | |
static bool | TryParse (string packageReferenceAsText, out PackageReference packageReference) |
Tries to parse a package reference in the format {guid:location}. More... | |
static implicit | operator PackageReference (Package package) |
Performs an implicit conversion from Package to PackageReference. More... | |
Properties | |
Guid | Id [get, set] |
Gets or sets the identifier of the package. More... | |
UFile | Location [get, set] |
Gets or sets the location of the package description file on the disk, relative to the package that is holding this reference. More... | |
A reference to a local package loaded into the same PackageSession.
Definition at line 13 of file PackageReference.cs.
SiliconStudio.Assets.PackageReference.PackageReference | ( | ) |
Initializes a new instance of the PackageReference class.
Definition at line 18 of file PackageReference.cs.
SiliconStudio.Assets.PackageReference.PackageReference | ( | Guid | id, |
UFile | location | ||
) |
Initializes a new instance of the PackageReference class.
id | The identifier. |
location | The location. |
Definition at line 27 of file PackageReference.cs.
PackageReference SiliconStudio.Assets.PackageReference.Clone | ( | ) |
|
static |
Performs an implicit conversion from Package to PackageReference.
package | The package. |
Definition at line 79 of file PackageReference.cs.
References SiliconStudio.Assets.Package.FullPath, and SiliconStudio.Assets.Asset.Id.
override string SiliconStudio.Assets.PackageReference.ToString | ( | ) |
Definition at line 84 of file PackageReference.cs.
|
static |
Tries to parse a package reference in the format {guid:location}.
packageReferenceAsText | The package reference as text. |
packageReference | The package reference. |
true
if the package reference is a valid reference, false
otherwise.Definition at line 61 of file PackageReference.cs.
References SiliconStudio.Assets.AssetReference.TryParse().
|
getset |
Gets or sets the identifier of the package.
The identifier.
Definition at line 37 of file PackageReference.cs.
|
getset |
Gets or sets the location of the package description file on the disk, relative to the package that is holding this reference.
The location.
Definition at line 44 of file PackageReference.cs.