SaveGame.Save
Description
Saves the value in the specified identifier.
Parameters
Name | Type | Description | Required |
---|---|---|---|
identifier | string | The identifier | required |
value | T | The value to save | required |
encode | bool | Use Encryption? | optional |
password | string | The encryption password | optional |
serializer | ISaveGameSerializer | The serializer | optional |
encoder | ISaveGameEncoder | The encoder | optional |
encoding | Encoding | The Unicode encoding | optional |
path | SaveGamePath | The path to save | optional |
Examples
Saving Simple Data
SaveGame.Save<string> ( "simple.txt", "Simple Data" );
Saving Array
string[] names = new string[] { "John", "James", "Kyle" };
SaveGame.Save<string[]> ( "names.txt", names );