C# Class Forge.Unity.LevelDesigner

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: jacobdufault/forge-unity

Méthodes publiques

Свойство Type Description
LevelTemplatePath string
SavedLevelTemplateState string
SavedSharedTemplateState string
SavedSnapshotState string
SharedTemplatePath string
SnapshotPath string

Private Properties

Свойство Type Description
FindChild UnityEngine.GameObject
PrepareForRestoration void

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnDisable ( ) : void
Update ( ) : void

Private Methods

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

Method Details

AddEntity() public méthode

Adds an entity to the current snapshot.
public AddEntity ( ) : void
Résultat void

AddLevelTemplate() public méthode

Adds a template to the current level template group.
public AddLevelTemplate ( ) : void
Résultat void

AddSharedTemplate() public méthode

Adds a template to the current shared template group.
public AddSharedTemplate ( ) : void
Résultat void

ClearLevelTemplates() public méthode

Removes the level template group.
public ClearLevelTemplates ( ) : void
Résultat void

ClearSharedTemplates() public méthode

Removes the shared template group.
public ClearSharedTemplates ( ) : void
Résultat void

ClearSnapshot() public méthode

Removes the current level.
public ClearSnapshot ( ) : void
Résultat void

CreateLevelTemplateGroup() public méthode

Creates a new empty level template group.
public CreateLevelTemplateGroup ( ) : void
Résultat void

CreateSharedTemplateGroup() public méthode

Creates a new empty shared template group.
public CreateSharedTemplateGroup ( ) : void
Résultat void

CreateSnapshot() public méthode

Creates a new empty snapshot.
public CreateSnapshot ( ) : void
Résultat void

ExportLevelTemplates() public méthode

Writes the current state of the level templates to the template path.
public ExportLevelTemplates ( ) : void
Résultat void

ExportSharedTemplates() public méthode

Writes the current state of the shared templates to the template path.
public ExportSharedTemplates ( ) : void
Résultat void

ExportSnapshot() public méthode

Exports the current level reference to the export path.
public ExportSnapshot ( ) : void
Résultat void

ImportLevelTemplates() public méthode

Imports level templates using the given template JSON.
public ImportLevelTemplates ( string templateJson ) : void
templateJson string
Résultat void

ImportSharedTemplates() public méthode

Imports shared templates using the given template JSON.
public ImportSharedTemplates ( string templateJson ) : void
templateJson string
Résultat void

ImportSnapshot() public méthode

public ImportSnapshot ( string snapshotJson ) : void
snapshotJson string
Résultat void

OnDisable() protected méthode

protected OnDisable ( ) : void
Résultat void

OnEntityDestroyed() public méthode

public OnEntityDestroyed ( EntityContainer container ) : void
container EntityContainer
Résultat void

OnTemplateDestroyed() public méthode

public OnTemplateDestroyed ( ITemplate template ) : void
template ITemplate
Résultat void

Update() protected méthode

protected Update ( ) : void
Résultat void

Property Details

LevelTemplatePath public_oe property

public string LevelTemplatePath
Résultat string

SavedLevelTemplateState public_oe property

public string SavedLevelTemplateState
Résultat string

SavedSharedTemplateState public_oe property

public string SavedSharedTemplateState
Résultat string

SavedSnapshotState public_oe property

public string SavedSnapshotState
Résultat string

SharedTemplatePath public_oe property

public string SharedTemplatePath
Résultat string

SnapshotPath public_oe property

public string SnapshotPath
Résultat string