C# Class Protogame.OgmoLevelReader

The ogmo level reader.
Inheritance: ILevelReader
Show file Open project: RedpointGames/Protogame

Public Methods

Method 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 method

public OgmoLevelReader ( IKernel kernel, IHierarchy hierarchy ) : System
kernel IKernel
hierarchy IHierarchy
return System

Read() public method

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). ///
return IEnumerable

Read() public method

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