C# Класс Protogame.DefaultLevelManager

The default level manager.
Наследование: ILevelManager
Показать файл Открыть проект

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

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