C# Класс MrGravity.LevelInfo

Information for the level that can be accessed easily
Показать файл Открыть проект

Открытые методы

Метод Описание
Export ( ) : System.Xml.Linq.XElement

Exports this level to a level info

GetGoal ( StarTypes starType ) : int

Gets the goal.

GetStar ( StarTypes starType ) : int

Gets the star.

LevelInfo ( System.Xml.Linq.XElement levelInfo, Microsoft.Xna.Framework.Content.ContentManager content, IControlScheme controls, GraphicsDeviceManager graphics ) : System
Reset ( ) : void

Resets this level

SetStar ( StarTypes starType, int value ) : void

StarCount ( ) : int

Gets the star count

TenthStar ( ) : bool

Gets if there is a tenth star or not

Unlock ( ) : void

Unlocks this level

Описание методов

Export() публичный Метод

Exports this level to a level info
public Export ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement

GetGoal() публичный Метод

Gets the goal.
public GetGoal ( StarTypes starType ) : int
starType StarTypes Type of the star.
Результат int

GetStar() публичный Метод

Gets the star.
public GetStar ( StarTypes starType ) : int
starType StarTypes Type of the star.
Результат int

LevelInfo() публичный Метод

public LevelInfo ( System.Xml.Linq.XElement levelInfo, Microsoft.Xna.Framework.Content.ContentManager content, IControlScheme controls, GraphicsDeviceManager graphics ) : System
levelInfo System.Xml.Linq.XElement
content Microsoft.Xna.Framework.Content.ContentManager
controls IControlScheme
graphics GraphicsDeviceManager
Результат System

Reset() публичный Метод

Resets this level
public Reset ( ) : void
Результат void

SetStar() публичный Метод

public SetStar ( StarTypes starType, int value ) : void
starType StarTypes
value int
Результат void

StarCount() публичный Метод

Gets the star count
public StarCount ( ) : int
Результат int

TenthStar() публичный Метод

Gets if there is a tenth star or not
public TenthStar ( ) : bool
Результат bool

Unlock() публичный Метод

Unlocks this level
public Unlock ( ) : void
Результат void