C# Class TuxedoBerries.ScenePanel.Controllers.SceneDatabase

Scene database. Databse of the scenes in the project.
Afficher le fichier Open project: TuxedoBerries/ScenePanel Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Adds to build.
public AddToBuild ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Résultat bool

Contains() public méthode

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

GenerateJSON() public méthode

Generates a JSON representation of the scenes.
public GenerateJSON ( ) : string
Résultat string

GetAllScenes() public méthode

Gets all scenes.
public GetAllScenes ( ) : IEnumerator
Résultat IEnumerator

GetBuildScenes() public méthode

Gets the build scenes.
public GetBuildScenes ( ) : IEnumerator
Résultat IEnumerator

GetFavorites() public méthode

Gets the favorites.
public GetFavorites ( ) : IEnumerator
Résultat IEnumerator

Refresh() public méthode

Refresh this instance.
public Refresh ( ) : void
Résultat void

RemoveToBuild() public méthode

Removes to build.
public RemoveToBuild ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Résultat bool

SceneDatabase() public méthode

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

SetAsActive() public méthode

Sets as active.
public SetAsActive ( string scenePath ) : bool
scenePath string Scene path.
Résultat bool

UpdateEnable() public méthode

Updates the enable.
public UpdateEnable ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Résultat bool

UpdateEntity() public méthode

Updates the entity.
public UpdateEntity ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Résultat bool

UpdateIndex() public méthode

Updates the index.
public UpdateIndex ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Résultat bool

this() public méthode

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