![]() |
Paradox Game Engine
v1.0.0 beta06
|
A session for editing a package. More...
Public Member Functions | |
PackageSession () | |
Initializes a new instance of the PackageSession class. More... | |
PackageSession (Package package) | |
Initializes a new instance of the PackageSession class. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
IEnumerable< Package > | GetPackagesFromCurrent () |
Gets the packages referenced by the current package. More... | |
LoggerResult | AddExistingPackage (UFile packagePath, PackageLoadParameters loadParameters=null) |
Adds an existing package to the current session. More... | |
Package | AddExistingPackage (UFile packagePath, ILogger logger, PackageLoadParameters loadParametersArg=null) |
Adds an existing package to the current session. More... | |
void | LoadMissingReferences (ILogger log, PackageLoadParameters loadParametersArg=null) |
Loads the missing references More... | |
LoggerResult | Save () |
Saves all packages and assets. More... | |
Static Public Member Functions | |
static void | Load (string filePath, PackageSessionResult sessionResult, PackageLoadParameters loadParameters=null) |
Loads a package from specified file path. More... | |
static PackageSessionResult | Load (string filePath, PackageLoadParameters loadParameters=null) |
Loads a package from specified file path. More... | |
Properties | |
bool | IsDirty [get, set] |
PackageCollection | Packages [get] |
Gets the packages. More... | |
IEnumerable< Package > | LocalPackages [get] |
Gets the user packages (excluding system packages). More... | |
UFile | SolutionPath [get, set] |
Gets or sets the solution path (sln) in case the session was loaded from a solution. More... | |
bool | HasDependencyManager [get] |
Gets a value indicating whether this instance has dependency manager. More... | |
Package | CurrentPackage [get, set] |
Gets or sets the selected current package. More... | |
AssetDependencyManager | DependencyManager [get] |
Gets the dependency manager. More... | |
![]() | |
bool | IsDirty [get, set] |
Gets or sets a value indicating whether this instance is dirty. More... | |
Events | |
Action< Asset > | AssetDirtyChanged |
A session for editing a package.
Definition at line 27 of file PackageSession.cs.
SiliconStudio.Assets.PackageSession.PackageSession | ( | ) |
Initializes a new instance of the PackageSession class.
Definition at line 41 of file PackageSession.cs.
SiliconStudio.Assets.PackageSession.PackageSession | ( | Package | package | ) |
Initializes a new instance of the PackageSession class.
Definition at line 48 of file PackageSession.cs.
LoggerResult SiliconStudio.Assets.PackageSession.AddExistingPackage | ( | UFile | packagePath, |
PackageLoadParameters | loadParameters = null |
||
) |
Adds an existing package to the current session.
packagePath | The package path. |
loadParameters | The load parameters. |
System.ArgumentNullException | packagePath |
System.IO.FileNotFoundException | Unable to find package |
Definition at line 199 of file PackageSession.cs.
Package SiliconStudio.Assets.PackageSession.AddExistingPackage | ( | UFile | packagePath, |
ILogger | logger, | ||
PackageLoadParameters | loadParametersArg = null |
||
) |
Adds an existing package to the current session.
packagePath | The package path. |
logger | The session result. |
loadParametersArg | The load parameters argument. |
System.ArgumentNullException | packagePath |
System.ArgumentException | Invalid relative path. Expecting an absolute package path;packagePath |
System.IO.FileNotFoundException | Unable to find package |
Definition at line 215 of file PackageSession.cs.
References SiliconStudio.Core.IO.UPath.IsAbsolute.
void SiliconStudio.Assets.PackageSession.Dispose | ( | ) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Definition at line 96 of file PackageSession.cs.
IEnumerable<Package> SiliconStudio.Assets.PackageSession.GetPackagesFromCurrent | ( | ) |
Gets the packages referenced by the current package.
Definition at line 147 of file PackageSession.cs.
|
static |
Loads a package from specified file path.
filePath | The file path to a package file. |
sessionResult | The session result. |
loadParameters | The load parameters. |
System.ArgumentNullException | filePath |
System.ArgumentException | File [{0}] must exist.ToFormat(filePath);filePath |
Definition at line 258 of file PackageSession.cs.
|
static |
Loads a package from specified file path.
filePath | The file path to a package file. |
loadParameters | The load parameters. |
System.ArgumentNullException | filePath |
Definition at line 350 of file PackageSession.cs.
void SiliconStudio.Assets.PackageSession.LoadMissingReferences | ( | ILogger | log, |
PackageLoadParameters | loadParametersArg = null |
||
) |
Loads the missing references
log | The log. |
loadParametersArg | The load parameters argument. |
Definition at line 362 of file PackageSession.cs.
LoggerResult SiliconStudio.Assets.PackageSession.Save | ( | ) |
Saves all packages and assets.
Definition at line 388 of file PackageSession.cs.
References SiliconStudio.Assets.PackageCollection.ContainsById(), SiliconStudio.Assets.PackageMeta.Dependencies, SiliconStudio.Assets.AssetRegistry.ExpandString(), SiliconStudio.Assets.Package.IsSystem, SiliconStudio.Assets.Package.LocalDependencies, SiliconStudio.Assets.Package.Meta, SiliconStudio.Assets.PackageSession.Packages, and SiliconStudio.Assets.Package.TemporaryAssets.
|
getset |
Gets or sets the selected current package.
The selected current package.
System.InvalidOperationException | Expecting a package that is already registered in this session |
Definition at line 125 of file PackageSession.cs.
|
get |
Gets the dependency manager.
AssetDependencyManager.
Definition at line 182 of file PackageSession.cs.
|
get |
Gets a value indicating whether this instance has dependency manager.
true
if this instance has dependency manager; otherwise, false
.
Definition at line 109 of file PackageSession.cs.
|
getset |
Definition at line 61 of file PackageSession.cs.
|
get |
Gets the user packages (excluding system packages).
The user packages.
Definition at line 80 of file PackageSession.cs.
|
get |
Gets the packages.
The packages.
Definition at line 68 of file PackageSession.cs.
Referenced by SiliconStudio.Assets.PackageAssetCollection.CheckCanAdd(), SiliconStudio.Assets.PackageSessionExtensions.FindAsset(), and SiliconStudio.Assets.PackageSession.Save().
|
getset |
Gets or sets the solution path (sln) in case the session was loaded from a solution.
The solution path.
Definition at line 91 of file PackageSession.cs.
Action<Asset> SiliconStudio.Assets.PackageSession.AssetDirtyChanged |
Definition at line 36 of file PackageSession.cs.