C# Class Protogame.DefaultLevelManager

The default level manager.
Inheritance: ILevelManager
Afficher le fichier Open project: RedpointGames/Protogame

Méthodes publiques

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

Private Methods

Méthode Description
Load ( IWorld world, string name ) : void

Method Details

DefaultLevelManager() public méthode

public DefaultLevelManager ( IKernel kernel, INode currentNode ) : System
kernel IKernel
currentNode INode
Résultat System

Load() public méthode

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.
Résultat void

Load() public méthode

public Load ( object context, LevelAsset levelAsset, Func filter ) : void
context object
levelAsset LevelAsset
filter Func
Résultat void

LoadAsync() public méthode

public LoadAsync ( object context, LevelAsset levelAsset ) : Task
context object
levelAsset LevelAsset
Résultat Task

LoadAsync() public méthode

public LoadAsync ( object context, LevelAsset levelAsset, Func filter ) : Task
context object
levelAsset LevelAsset
filter Func
Résultat Task