C# 클래스 Protogame.DefaultLevelManager

The default level manager.
상속: ILevelManager
파일 보기 프로젝트 열기: RedpointGames/Protogame

공개 메소드들

메소드 설명
DefaultLevelManager ( IKernel kernel, INode currentNode ) : System
Load ( object context, LevelAsset levelAsset ) : void

Loads a level entity into the game hierarchy, with the specified context as the place to load entities. Normally you'll pass in the game world here, but you don't have to. For example, if you wanted to load the level into an entity group, you would pass the entity group as the context instead.

Load ( object context, LevelAsset levelAsset, Func filter ) : void
LoadAsync ( object context, LevelAsset levelAsset ) : Task
LoadAsync ( object context, LevelAsset levelAsset, Func filter ) : Task

비공개 메소드들

메소드 설명
Load ( IWorld world, string name ) : void

메소드 상세

DefaultLevelManager() 공개 메소드

public DefaultLevelManager ( IKernel kernel, INode currentNode ) : System
kernel IKernel
currentNode INode
리턴 System

Load() 공개 메소드

Loads a level entity into the game hierarchy, with the specified context as the place to load entities. Normally you'll pass in the game world here, but you don't have to. For example, if you wanted to load the level into an entity group, you would pass the entity group as the context instead.
public Load ( object context, LevelAsset levelAsset ) : void
context object Usually the current game world, but can be any object in the hierarchy.
levelAsset LevelAsset The level to load.
리턴 void

Load() 공개 메소드

public Load ( object context, LevelAsset levelAsset, Func filter ) : void
context object
levelAsset LevelAsset
filter Func
리턴 void

LoadAsync() 공개 메소드

public LoadAsync ( object context, LevelAsset levelAsset ) : Task
context object
levelAsset LevelAsset
리턴 Task

LoadAsync() 공개 메소드

public LoadAsync ( object context, LevelAsset levelAsset, Func filter ) : Task
context object
levelAsset LevelAsset
filter Func
리턴 Task