C# Класс MrGravity.LevelChoice

Показать файл Открыть проект

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

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

Export an XElement of this level choice TODO: change additional XElements for new worldSelect

LevelChoice ( System.Xml.Linq.XElement levelInfo, IControlScheme controls, Microsoft.Xna.Framework.Content.ContentManager content, GraphicsDevice graphics ) : System

Reset ( bool rUnlock ) : void

Resets this level choice to unlocked/locked depending on rUnlock, and resets scores to 0.

SubmitScore ( int timerStar, int collectionStar, int deathStar ) : void

Submits new scores for the 3 scoring factors for this level, and if the new score is higher than previously recorded it makes note of this. Scores should be between values of 0 and 3.

Unlock ( ) : void

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

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

Export an XElement of this level choice TODO: change additional XElements for new worldSelect
public Export ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement

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

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

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

Resets this level choice to unlocked/locked depending on rUnlock, and resets scores to 0.
public Reset ( bool rUnlock ) : void
rUnlock bool True if level is locked, false otherwise
Результат void

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

Submits new scores for the 3 scoring factors for this level, and if the new score is higher than previously recorded it makes note of this. Scores should be between values of 0 and 3.
public SubmitScore ( int timerStar, int collectionStar, int deathStar ) : void
timerStar int High Score for the Timer stars
collectionStar int High Score for the Collection stars
deathStar int High Score for the Death stars
Результат void

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

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