Click or drag to resize

GameInfoLoad Method (Stream)

Loads the game from the specified stream

Namespace:  Zyrenth.Zora
Assembly:  ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntax
public static GameInfo Load(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The stream containing the saved GameInfo

Return Value

Type: GameInfo
A GameInfo
Examples
This example demonstrates creating a GameInfo object from a .zora save file. If you have access to the file name you will be loading from, as in this example, you should consider using the Load(String) method instead.
C#
string file = @"C:\Users\Link\Documents\my_game.zora";
using (FileStream fileStream = File.OpenRead(file))
{
    GameInfo info = GameInfo.Load(fileStream);
}
See Also