C# Класс Zyrenth.Zora.GameInfo

Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Equals ( object obj ) : bool

Determines whether the specified System.Object, is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

Load ( Stream stream ) : GameInfo

Loads the game from the specified stream

Load ( string filename ) : GameInfo

Loads the game info from the specified file

Parse ( string json ) : GameInfo

Parses the specified json.

Write ( Stream stream ) : void

Writes the game info to the specified stream

Write ( string filename ) : void

Writes this game info out to the specified file

Защищенные методы

Метод Описание
NotifyPropertyChanged ( string propertyName ) : void

Sends a notification that a property has changed.

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

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

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Результат bool

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

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

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

Loads the game from the specified stream
public static Load ( Stream stream ) : GameInfo
stream Stream The stream containing the saved GameInfo
Результат GameInfo

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

Loads the game info from the specified file
public static Load ( string filename ) : GameInfo
filename string The file name of the saved GameInfo
Результат GameInfo

NotifyPropertyChanged() защищенный Метод

Sends a notification that a property has changed.
protected NotifyPropertyChanged ( string propertyName ) : void
propertyName string Name of the property.
Результат void

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

Parses the specified json.
public static Parse ( string json ) : GameInfo
json string The json.
Результат GameInfo

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

Writes the game info to the specified stream
public Write ( Stream stream ) : void
stream Stream The stream to write to
Результат void

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

Writes this game info out to the specified file
public Write ( string filename ) : void
filename string The file name
Результат void