Twoorb Plugins  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Twoorb.PrefabSystem.Editor.RemoteFolderData Class Reference

ScriptableObject asset containing all the data about all the remote folders. Using the folder data with the prefab system will make each folder an asset bundle upon build. More...

Inheritance diagram for Twoorb.PrefabSystem.Editor.RemoteFolderData:

Public Member Functions

GroupDependencyCollection FindDependencyCollection (int groupID)
 Finds a dependency collection from a GroupID. Returns null if nothing is found More...
 
GroupDependencyCollection CreateDependencyCollection (int groupID)
 Creates a new dependency collection from the groupID and adds it to the list. Note: make sure that no collection with this groupID exist before you do this. More...
 
void RemoveDependencyCollection (int groupID)
 Remove a dependency collection with the specified group id More...
 
bool RemoveDependencyCollection (GroupDependencyCollection dependencyCollection)
 Remove a dependency collection from the stored dependency collection list in the asset. More...
 
RemoteFolderElement GetFolderElement (string directoryName)
 Returns the folder element of a specified remote folder name More...
 

Static Public Member Functions

static RemoteFolderData GetOrCreateFolderData ()
 Gets or creates a new instance of the folder data collection. More...
 

Public Attributes

int m_uniqueFolderCount = 0
 The unique count for remote folder ID:s More...
 
List< RemoteFolderElementm_folderElements = new List<RemoteFolderElement>()
 All the stored remote folder elements More...
 
List< GroupDependencyCollectionm_groupDependencies = new List<GroupDependencyCollection>()
 All the stored dependency collections More...
 

Properties

List< RemoteFolderElementFolderElements [get]
 All the stored remote folder elements More...
 

Detailed Description

ScriptableObject asset containing all the data about all the remote folders. Using the folder data with the prefab system will make each folder an asset bundle upon build.

Member Function Documentation

GroupDependencyCollection Twoorb.PrefabSystem.Editor.RemoteFolderData.CreateDependencyCollection ( int  groupID)

Creates a new dependency collection from the groupID and adds it to the list. Note: make sure that no collection with this groupID exist before you do this.

GroupDependencyCollection Twoorb.PrefabSystem.Editor.RemoteFolderData.FindDependencyCollection ( int  groupID)

Finds a dependency collection from a GroupID. Returns null if nothing is found

Parameters
groupIDThe groupID of the dependency collection to find
Returns
The GroupDependencyCollection. Returns null upon failure
RemoteFolderElement Twoorb.PrefabSystem.Editor.RemoteFolderData.GetFolderElement ( string  directoryName)

Returns the folder element of a specified remote folder name

Parameters
directoryNameThe name of the remote folder
Returns
The remote folder element. Returns null upon failure.
static RemoteFolderData Twoorb.PrefabSystem.Editor.RemoteFolderData.GetOrCreateFolderData ( )
static

Gets or creates a new instance of the folder data collection.

Returns
The remote folder data asset
void Twoorb.PrefabSystem.Editor.RemoteFolderData.RemoveDependencyCollection ( int  groupID)

Remove a dependency collection with the specified group id

Parameters
groupIDThe groupID of the collection to remove
bool Twoorb.PrefabSystem.Editor.RemoteFolderData.RemoveDependencyCollection ( GroupDependencyCollection  dependencyCollection)

Remove a dependency collection from the stored dependency collection list in the asset.

Parameters
dependencyCollectionThe collection to remove
Returns
returns if the operation was a success

Member Data Documentation

List<RemoteFolderElement> Twoorb.PrefabSystem.Editor.RemoteFolderData.m_folderElements = new List<RemoteFolderElement>()

All the stored remote folder elements

List<GroupDependencyCollection> Twoorb.PrefabSystem.Editor.RemoteFolderData.m_groupDependencies = new List<GroupDependencyCollection>()

All the stored dependency collections

int Twoorb.PrefabSystem.Editor.RemoteFolderData.m_uniqueFolderCount = 0

The unique count for remote folder ID:s

Property Documentation

List<RemoteFolderElement> Twoorb.PrefabSystem.Editor.RemoteFolderData.FolderElements
get

All the stored remote folder elements


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