C# Class Protogame.ATFLevelReader

The level reader for levels saved from an ATF level editor.
Inheritance: ILevelReader
ファイルを表示 Open project: RedpointGames/Protogame

Public Methods

Method Description
ATFLevelReader ( IKernel kernel, IHierarchy hierarchy ) : System
Read ( Stream stream, object context ) : IEnumerable
Read ( Stream stream, object context, Func filter ) : IEnumerable

Private Methods

Method Description
ProcessElementToPlan ( IPlan parentPlan, IPlan rootPlan, XmlElement currentElement, List rootPlans, int depth, Func filter ) : void
ResolveEditorQueryForElement ( IContext context, Type queryType, Type targetType, XmlElement element ) : object

Method Details

ATFLevelReader() public method

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

Read() public method

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

Read() public method

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