C# Class DivineRightGame.LocalMapGenerator.MapletDatabaseHandler

Handles data from the Maplet Database
显示文件 Open project: Haedrian/Divine-Right

Public Methods

Method Description
GetMapletByID ( int id ) : System.Xml.Linq.XElement
GetMapletByTag ( string tag ) : System.Xml.Linq.XElement
GetMapletByTagAndLevel ( string tag, int level ) : System.Xml.Linq.XElement

Gets a particular Maplet by its tag and level

Private Methods

Method Description
LoadFile ( string path ) : System.Xml.Linq.XElement

Loads a file in the particular path from cache if available, or from the disk if it is not

ReadData ( ) : void

Reads the data into the dictionary

Method Details

GetMapletByID() public static method

public static GetMapletByID ( int id ) : System.Xml.Linq.XElement
id int
return System.Xml.Linq.XElement

GetMapletByTag() public static method

public static GetMapletByTag ( string tag ) : System.Xml.Linq.XElement
tag string
return System.Xml.Linq.XElement

GetMapletByTagAndLevel() public static method

Gets a particular Maplet by its tag and level
public static GetMapletByTagAndLevel ( string tag, int level ) : System.Xml.Linq.XElement
tag string
level int
return System.Xml.Linq.XElement