C# Class Protogame.OgmoLevelReader

The ogmo level reader.
Inheritance: ILevelReader
Afficher le fichier Open project: RedpointGames/Protogame

Méthodes publiques

Méthode Description
OgmoLevelReader ( IKernel kernel, IHierarchy hierarchy ) : System
Read ( Stream stream, object context ) : IEnumerable

Creates the entities from the stream.

Read ( Stream stream, object context, Func filter ) : IEnumerable

Method Details

OgmoLevelReader() public méthode

public OgmoLevelReader ( IKernel kernel, IHierarchy hierarchy ) : System
kernel IKernel
hierarchy IHierarchy
Résultat System

Read() public méthode

Creates the entities from the stream.
public Read ( Stream stream, object context ) : IEnumerable
stream Stream The stream which contains an Ogmo Editor level.
context object /// The context in which entities are being spawned in the hierarchy. This is /// usually the current world, but it doesn't have to be (e.g. if you wanted to /// load a level under an entity group, you would pass the entity group here). ///
Résultat IEnumerable

Read() public méthode

public Read ( Stream stream, object context, Func filter ) : IEnumerable
stream Stream
context object
filter Func
Résultat IEnumerable