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

A collection of Package. More...

Inheritance diagram for SiliconStudio.Assets.PackageCollection:
ICollection< Package > INotifyCollectionChanged

Public Member Functions

 PackageCollection ()
 Initializes a new instance of the PackageCollection class. More...
 
IEnumerator< PackageGetEnumerator ()
 
Package Find (Guid packageGuid)
 Finds the specified package by its unique identifier. More...
 
Package Find (PackageDependency packageDependency)
 Finds the a package already in this collection from the specified dependency. More...
 
Package Find (string name, PackageVersionRange versionRange)
 Finds a package with the specified name and PackageVersionRange. More...
 
void Add (Package item)
 
void Clear ()
 
bool ContainsById (Guid packageGuid)
 Determines whether this collection contains a package with the specified package unique identifier. More...
 
bool Contains (Package item)
 
void CopyTo (Package[] array, int arrayIndex)
 
bool RemoveById (Guid packageGuid)
 
bool Remove (Package item)
 

Properties

int Count [get]
 
bool IsReadOnly [get]
 

Events

NotifyCollectionChangedEventHandler CollectionChanged
 Occurs when the collection changes. More...
 

Detailed Description

A collection of Package.

Definition at line 21 of file PackageCollection.cs.

Constructor & Destructor Documentation

SiliconStudio.Assets.PackageCollection.PackageCollection ( )

Initializes a new instance of the PackageCollection class.

Definition at line 33 of file PackageCollection.cs.

Member Function Documentation

void SiliconStudio.Assets.PackageCollection.Add ( Package  item)

Definition at line 99 of file PackageCollection.cs.

References SiliconStudio.Assets.Asset.Id.

void SiliconStudio.Assets.PackageCollection.Clear ( )

Definition at line 109 of file PackageCollection.cs.

bool SiliconStudio.Assets.PackageCollection.Contains ( Package  item)

Definition at line 126 of file PackageCollection.cs.

References SiliconStudio.Assets.Asset.Id.

bool SiliconStudio.Assets.PackageCollection.ContainsById ( Guid  packageGuid)

Determines whether this collection contains a package with the specified package unique identifier.

Parameters
packageGuidThe package unique identifier.
Returns
true if this collection contains a package with the specified package unique identifier; otherwise, false.

Definition at line 121 of file PackageCollection.cs.

Referenced by SiliconStudio.Assets.PackageSession.Save().

void SiliconStudio.Assets.PackageCollection.CopyTo ( Package[]  array,
int  arrayIndex 
)

Definition at line 132 of file PackageCollection.cs.

Package SiliconStudio.Assets.PackageCollection.Find ( Guid  packageGuid)

Finds the specified package by its unique identifier.

Parameters
packageGuidThe package unique identifier.
Returns
Package.

Definition at line 69 of file PackageCollection.cs.

Package SiliconStudio.Assets.PackageCollection.Find ( PackageDependency  packageDependency)

Finds the a package already in this collection from the specified dependency.

Parameters
packageDependencyThe package dependency.
Returns
Package.

Definition at line 79 of file PackageCollection.cs.

References SiliconStudio.Assets.PackageDependency.Name, and SiliconStudio.Assets.PackageDependency.Version.

Package SiliconStudio.Assets.PackageCollection.Find ( string  name,
PackageVersionRange  versionRange 
)

Finds a package with the specified name and PackageVersionRange.

Parameters
nameThe name.
versionRangeThe version range.
Returns
Package.

Definition at line 91 of file PackageCollection.cs.

IEnumerator<Package> SiliconStudio.Assets.PackageCollection.GetEnumerator ( )

Definition at line 54 of file PackageCollection.cs.

bool SiliconStudio.Assets.PackageCollection.Remove ( Package  item)

Definition at line 150 of file PackageCollection.cs.

References SiliconStudio.Assets.Asset.Id.

bool SiliconStudio.Assets.PackageCollection.RemoveById ( Guid  packageGuid)

Definition at line 137 of file PackageCollection.cs.

Property Documentation

int SiliconStudio.Assets.PackageCollection.Count
get

Definition at line 39 of file PackageCollection.cs.

bool SiliconStudio.Assets.PackageCollection.IsReadOnly
get

Definition at line 47 of file PackageCollection.cs.

Event Documentation

NotifyCollectionChangedEventHandler SiliconStudio.Assets.PackageCollection.CollectionChanged

Occurs when the collection changes.

Definition at line 28 of file PackageCollection.cs.


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