C# 클래스 Forge.Unity.LevelDesigner

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: jacobdufault/forge-unity

공개 프로퍼티들

프로퍼티 타입 설명
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