C# Class TuxedoBerries.ScenePanel.Controllers.SceneDatabase

Scene database. Databse of the scenes in the project.
Mostrar archivo Open project: TuxedoBerries/ScenePanel Class Usage Examples

Public Methods

Method Description
AddToBuild ( ISceneEntity entity ) : bool

Adds to build.

Contains ( string scenePath ) : bool

Determine if the given scenePath exist.

GenerateJSON ( ) : string

Generates a JSON representation of the scenes.

GetAllScenes ( ) : IEnumerator

Gets all scenes.

GetBuildScenes ( ) : IEnumerator

Gets the build scenes.

GetFavorites ( ) : IEnumerator

Gets the favorites.

Refresh ( ) : void

Refresh this instance.

RemoveToBuild ( ISceneEntity entity ) : bool

Removes to build.

SceneDatabase ( ) : System.Collections.Generic

Initializes a new instance of the TuxedoBerries.ScenePanel.SceneDatabase class.

SetAsActive ( string scenePath ) : bool

Sets as active.

UpdateEnable ( ISceneEntity entity ) : bool

Updates the enable.

UpdateEntity ( ISceneEntity entity ) : bool

Updates the entity.

UpdateIndex ( ISceneEntity entity ) : bool

Updates the index.

this ( string scenePath ) : ISceneEntity

Gets the SceneEntity with the specified scenePath.

Private Methods

Method Description
AddBuildData ( ) : void

Adds the build data.

GenerateEntity ( string assetPath ) : SceneEntity

Generates the scene entity based on the asset path.

GetFromPool ( ) : SceneEntity
RefreshBuildSettings ( ) : void
RefreshDictionary ( ) : void

Generates the dictionary of scenes.

ReturnToPool ( SceneEntity entity ) : void

Returns to pool.

SortByIndex ( SceneEntity entityA, SceneEntity entityB ) : int

Method Details

AddToBuild() public method

Adds to build.
public AddToBuild ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
return bool

Contains() public method

Determine if the given scenePath exist.
public Contains ( string scenePath ) : bool
scenePath string Scene path.
return bool

GenerateJSON() public method

Generates a JSON representation of the scenes.
public GenerateJSON ( ) : string
return string

GetAllScenes() public method

Gets all scenes.
public GetAllScenes ( ) : IEnumerator
return IEnumerator

GetBuildScenes() public method

Gets the build scenes.
public GetBuildScenes ( ) : IEnumerator
return IEnumerator

GetFavorites() public method

Gets the favorites.
public GetFavorites ( ) : IEnumerator
return IEnumerator

Refresh() public method

Refresh this instance.
public Refresh ( ) : void
return void

RemoveToBuild() public method

Removes to build.
public RemoveToBuild ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
return bool

SceneDatabase() public method

Initializes a new instance of the TuxedoBerries.ScenePanel.SceneDatabase class.
public SceneDatabase ( ) : System.Collections.Generic
return System.Collections.Generic

SetAsActive() public method

Sets as active.
public SetAsActive ( string scenePath ) : bool
scenePath string Scene path.
return bool

UpdateEnable() public method

Updates the enable.
public UpdateEnable ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
return bool

UpdateEntity() public method

Updates the entity.
public UpdateEntity ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
return bool

UpdateIndex() public method

Updates the index.
public UpdateIndex ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
return bool

this() public method

Gets the SceneEntity with the specified scenePath.
public this ( string scenePath ) : ISceneEntity
scenePath string Scene path.
return ISceneEntity