메소드 | 설명 | |
---|---|---|
Load ( Stream stream ) : Metadata |
Loads a save game for the current cartridge from a stream.
|
|
LoadMetadata ( Stream stream ) : Metadata |
Loads the metadata of a GWS file stream.
|
|
Save ( Stream stream, string saveName = "UI initiated sync" ) : void |
Saves the current cartridge to a GWS file.
|
메소드 | 설명 | |
---|---|---|
GWS ( Cartridge cart, Character player, IPlatformHelper platformHelper, LuaDataFactory dataFactory ) : System | ||
LoadMetadata ( |
||
ReadCString ( |
Reads a null terminated string from binary stream.
|
|
SetField ( LuaDataContainer obj, object key, object value, IDataProvider rawset ) : void | ||
readByteArray ( |
Reads a byte array from binary reader. First four bytes are the length, the next length bytes are the array.
|
|
readString ( |
Reads a string from binary reader. First four bytes are the length, the next length bytes are the string.
|
|
readTable ( |
||
toArray ( string str ) : byte[] |
Convert string to byte array.
|
|
writeByteArray ( |
Writes a byte array to a binary writer. First four bytes are the length, the next length bytes are the array.
|
|
writeCString ( |
Writes a null terminated string to binary stream.
|
|
writeString ( |
Writes a string to a binary writer. First four bytes are the length, the next length bytes are the string.
|
|
writeTable ( |
Write the table obj to the binary writer output.
|
public Load ( Stream stream ) : Metadata | ||
stream | Stream | Stream to load the game from. |
리턴 | Metadata |
public static LoadMetadata ( Stream stream ) : Metadata | ||
stream | Stream | Stream of a GWS file, set at the beginning of the GWS /// file. |
리턴 | Metadata |
public Save ( Stream stream, string saveName = "UI initiated sync" ) : void | ||
stream | Stream | Stream to write the data to. |
saveName | string | Description for the save file, which is put into the file. |
리턴 | void |