C# Class Zyrenth.Zora.GameInfo

Inheritance: INotifyPropertyChanged
Mostrar archivo Open project: kabili207/zora-sharp Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
NotifyPropertyChanged ( string propertyName ) : void

Sends a notification that a property has changed.

Method Details

Equals() public method

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Load() public static method

Loads the game from the specified stream
public static Load ( Stream stream ) : GameInfo
stream Stream The stream containing the saved GameInfo
return GameInfo

Load() public static method

Loads the game info from the specified file
public static Load ( string filename ) : GameInfo
filename string The file name of the saved GameInfo
return GameInfo

NotifyPropertyChanged() protected method

Sends a notification that a property has changed.
protected NotifyPropertyChanged ( string propertyName ) : void
propertyName string Name of the property.
return void

Parse() public static method

Parses the specified json.
public static Parse ( string json ) : GameInfo
json string The json.
return GameInfo

Write() public method

Writes the game info to the specified stream
public Write ( Stream stream ) : void
stream Stream The stream to write to
return void

Write() public method

Writes this game info out to the specified file
public Write ( string filename ) : void
filename string The file name
return void