GameInfoLoad Method (Stream) |
Loads the game from the specified stream
Namespace:
Zyrenth.Zora
Assembly:
ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntaxpublic static GameInfo Load(
Stream stream
)
Public Shared Function Load (
stream As Stream
) As GameInfo
Parameters
- stream
- Type: System.IOStream
The stream containing the saved GameInfo
Return Value
Type:
GameInfoA 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.
string file = @"C:\Users\Link\Documents\my_game.zora";
using (FileStream fileStream = File.OpenRead(file))
{
GameInfo info = GameInfo.Load(fileStream);
}
See Also