C# Класс DivineRightGame.GameState

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

Открытые свойства

Свойство Тип Описание
IsRunningHeavyProcessing bool
MinuteValueChanged EventHandler
SAVEPATH string

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

Метод Описание
DayChanged ( object sender, EventArgs e ) : void

When the day changes we need to do some things

IncrementGameTime ( DRTimeComponent timeComponent, int value ) : void

Incremements the Game Time by an amount of minutes

LoadGame ( ) : void

Loads the game from the folder. There will only ever be one such savegame at a time.

MinuteChanged ( object sender, EventArgs e ) : void
MonthChanged ( object sender, EventArgs e ) : void
SaveFileExists ( ) : bool

Returns true if the save file exists

SaveGame ( ) : void

Saves the Game into the folder. There will only be one such savegame at a time.

Приватные методы

Метод Описание
GameState ( ) : System

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

DayChanged() публичный статический Метод

When the day changes we need to do some things
public static DayChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

IncrementGameTime() публичный статический Метод

Incremements the Game Time by an amount of minutes
public static IncrementGameTime ( DRTimeComponent timeComponent, int value ) : void
timeComponent DRTimeComponent
value int
Результат void

LoadGame() публичный статический Метод

Loads the game from the folder. There will only ever be one such savegame at a time.
public static LoadGame ( ) : void
Результат void

MinuteChanged() публичный статический Метод

public static MinuteChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

MonthChanged() публичный статический Метод

public static MonthChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

SaveFileExists() публичный статический Метод

Returns true if the save file exists
public static SaveFileExists ( ) : bool
Результат bool

SaveGame() публичный статический Метод

Saves the Game into the folder. There will only be one such savegame at a time.
public static SaveGame ( ) : void
Результат void

Описание свойств

IsRunningHeavyProcessing публичное статическое свойство

If the game is running heavy processing we store it here, so we can ignore user updates and show him something
public static bool IsRunningHeavyProcessing
Результат bool

MinuteValueChanged публичное статическое свойство

Event fires whenever the minute changes.
public static EventHandler MinuteValueChanged
Результат EventHandler

SAVEPATH публичное статическое свойство

public static string SAVEPATH
Результат string