C# 클래스 WarTornLands.Infrastructure.XMLParser

파일 보기 프로젝트 열기: floAr/WarTornLands

공개 메소드들

메소드 설명
CreateArea ( DataSet areaMeta, AreaVersion version ) : Area

Creates an Area from a given XML DataSet.

ReadSafegame ( ) : void

Reads a safegame. Not yet implemented

ReadWorld ( ) : void

Searches the Data directory in the content project for XML files ending on _Area.xml. The Level is reseted and a new one created, containing one Area for each file.

ValueOfProperty ( DataRow data, string propertyName ) : string

Searches a propertie structure for a specified propertie.

비공개 메소드들

메소드 설명
ReadEntityLayer ( Area &area, DataRow data ) : void
ReadEntityTypes ( ) : List

Searches for a directory of the same name as the currently build Area. Creates a list containing the data for each EntityType file (XML ending on _Type.xml) found in the respective 'Types' directory. Said list is meant to be saved in the Area instance for later use.

ReadRoamZones ( DataRow data ) : void
ReadTMX ( Area &area, DataSet data ) : void

Reads the TMX file related to an Area.

XMLParser ( ) : System

메소드 상세

CreateArea() 공개 메소드

Creates an Area from a given XML DataSet.
public CreateArea ( DataSet areaMeta, AreaVersion version ) : Area
areaMeta System.Data.DataSet The data.
version AreaVersion
리턴 WarTornLands.World.Area

ReadSafegame() 공개 메소드

Reads a safegame. Not yet implemented
public ReadSafegame ( ) : void
리턴 void

ReadWorld() 공개 메소드

Searches the Data directory in the content project for XML files ending on _Area.xml. The Level is reseted and a new one created, containing one Area for each file.
public ReadWorld ( ) : void
리턴 void

ValueOfProperty() 공개 정적인 메소드

Searches a propertie structure for a specified propertie.
public static ValueOfProperty ( DataRow data, string propertyName ) : string
data System.Data.DataRow The data.
propertyName string Name of the property.
리턴 string