C# Класс TuxedoBerries.ScenePanel.Controllers.SceneDatabase

Scene database. Databse of the scenes in the project.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddToBuild() публичный Метод

Adds to build.
public AddToBuild ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Результат bool

Contains() публичный Метод

Determine if the given scenePath exist.
public Contains ( string scenePath ) : bool
scenePath string Scene path.
Результат bool

GenerateJSON() публичный Метод

Generates a JSON representation of the scenes.
public GenerateJSON ( ) : string
Результат string

GetAllScenes() публичный Метод

Gets all scenes.
public GetAllScenes ( ) : IEnumerator
Результат IEnumerator

GetBuildScenes() публичный Метод

Gets the build scenes.
public GetBuildScenes ( ) : IEnumerator
Результат IEnumerator

GetFavorites() публичный Метод

Gets the favorites.
public GetFavorites ( ) : IEnumerator
Результат IEnumerator

Refresh() публичный Метод

Refresh this instance.
public Refresh ( ) : void
Результат void

RemoveToBuild() публичный Метод

Removes to build.
public RemoveToBuild ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Результат bool

SceneDatabase() публичный Метод

Initializes a new instance of the TuxedoBerries.ScenePanel.SceneDatabase class.
public SceneDatabase ( ) : System.Collections.Generic
Результат System.Collections.Generic

SetAsActive() публичный Метод

Sets as active.
public SetAsActive ( string scenePath ) : bool
scenePath string Scene path.
Результат bool

UpdateEnable() публичный Метод

Updates the enable.
public UpdateEnable ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Результат bool

UpdateEntity() публичный Метод

Updates the entity.
public UpdateEntity ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Результат bool

UpdateIndex() публичный Метод

Updates the index.
public UpdateIndex ( ISceneEntity entity ) : bool
entity ISceneEntity Entity.
Результат bool

this() публичный Метод

Gets the SceneEntity with the specified scenePath.
public this ( string scenePath ) : ISceneEntity
scenePath string Scene path.
Результат ISceneEntity