C# Класс Forge.Unity.LevelDesigner

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
LevelTemplatePath string
SavedLevelTemplateState string
SavedSharedTemplateState string
SavedSnapshotState string
SharedTemplatePath string
SnapshotPath string

Private Properties

Свойство Тип Описание
FindChild UnityEngine.GameObject
PrepareForRestoration void

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

Метод Описание
AddEntity ( ) : void

Adds an entity to the current snapshot.

AddLevelTemplate ( ) : void

Adds a template to the current level template group.

AddSharedTemplate ( ) : void

Adds a template to the current shared template group.

ClearLevelTemplates ( ) : void

Removes the level template group.

ClearSharedTemplates ( ) : void

Removes the shared template group.

ClearSnapshot ( ) : void

Removes the current level.

CreateLevelTemplateGroup ( ) : void

Creates a new empty level template group.

CreateSharedTemplateGroup ( ) : void

Creates a new empty shared template group.

CreateSnapshot ( ) : void

Creates a new empty snapshot.

ExportLevelTemplates ( ) : void

Writes the current state of the level templates to the template path.

ExportSharedTemplates ( ) : void

Writes the current state of the shared templates to the template path.

ExportSnapshot ( ) : void

Exports the current level reference to the export path.

ImportLevelTemplates ( string templateJson ) : void

Imports level templates using the given template JSON.

ImportSharedTemplates ( string templateJson ) : void

Imports shared templates using the given template JSON.

ImportSnapshot ( string snapshotJson ) : void
OnEntityDestroyed ( EntityContainer container ) : void
OnTemplateDestroyed ( ITemplate template ) : void

Защищенные методы

Метод Описание
OnDisable ( ) : void
Update ( ) : void

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

Метод Описание
FindChild ( string name ) : GameObject

Finds or creates a child entity with the given name (relative to this game object).

PrepareForRestoration ( ) : void

Prepares the restoration state and clears out entity/template containers in preparation either a Unity serialization cycle or entering play mode.

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

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

Adds an entity to the current snapshot.
public AddEntity ( ) : void
Результат void

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

Adds a template to the current level template group.
public AddLevelTemplate ( ) : void
Результат void

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

Adds a template to the current shared template group.
public AddSharedTemplate ( ) : void
Результат void

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

Removes the level template group.
public ClearLevelTemplates ( ) : void
Результат void

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

Removes the shared template group.
public ClearSharedTemplates ( ) : void
Результат void

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

Removes the current level.
public ClearSnapshot ( ) : void
Результат void

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

Creates a new empty level template group.
public CreateLevelTemplateGroup ( ) : void
Результат void

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

Creates a new empty shared template group.
public CreateSharedTemplateGroup ( ) : void
Результат void

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

Creates a new empty snapshot.
public CreateSnapshot ( ) : void
Результат void

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

Writes the current state of the level templates to the template path.
public ExportLevelTemplates ( ) : void
Результат void

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

Writes the current state of the shared templates to the template path.
public ExportSharedTemplates ( ) : void
Результат void

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

Exports the current level reference to the export path.
public ExportSnapshot ( ) : void
Результат void

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

Imports level templates using the given template JSON.
public ImportLevelTemplates ( string templateJson ) : void
templateJson string
Результат void

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

Imports shared templates using the given template JSON.
public ImportSharedTemplates ( string templateJson ) : void
templateJson string
Результат void

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

public ImportSnapshot ( string snapshotJson ) : void
snapshotJson string
Результат void

OnDisable() защищенный Метод

protected OnDisable ( ) : void
Результат void

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

public OnEntityDestroyed ( EntityContainer container ) : void
container EntityContainer
Результат void

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

public OnTemplateDestroyed ( ITemplate template ) : void
template ITemplate
Результат void

Update() защищенный Метод

protected Update ( ) : void
Результат void

Описание свойств

LevelTemplatePath публичное свойство

public string LevelTemplatePath
Результат string

SavedLevelTemplateState публичное свойство

public string SavedLevelTemplateState
Результат string

SavedSharedTemplateState публичное свойство

public string SavedSharedTemplateState
Результат string

SavedSnapshotState публичное свойство

public string SavedSnapshotState
Результат string

SharedTemplatePath публичное свойство

public string SharedTemplatePath
Результат string

SnapshotPath публичное свойство

public string SnapshotPath
Результат string