Interface ISaveGame
Assembly: VintagestoryAPI.dll
Syntax
public interface ISaveGame
Properties
CreatedGameVersion
The game version under which this savegame was created
Declaration
string CreatedGameVersion { get; }
Property Value
Type |
Description |
System.String |
|
EntitySpawning
Declaration
bool EntitySpawning { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsNew
True if this is a newly created world
Declaration
Property Value
Type |
Description |
System.Boolean |
|
LandClaims
Declaration
List<LandClaim> LandClaims { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<LandClaim> |
|
LastSavedGameVersion
The game version under which this savegame was last saved
Declaration
string LastSavedGameVersion { get; }
Property Value
Type |
Description |
System.String |
|
PlayStyle
Declaration
string PlayStyle { get; set; }
Property Value
Type |
Description |
System.String |
|
SavegameIdentifier
A globally unique identifier for this savegame
Declaration
string SavegameIdentifier { get; }
Property Value
Type |
Description |
System.String |
|
Seed
Declaration
Property Value
Type |
Description |
System.Int32 |
|
TotalGameSeconds
Declaration
long TotalGameSeconds { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
WorldConfiguration
Declaration
ITreeAttribute WorldConfiguration { get; }
Property Value
WorldName
Declaration
string WorldName { get; set; }
Property Value
Type |
Description |
System.String |
|
WorldType
Declaration
string WorldType { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
GetData(String)
Gets a previously saved object from the savegame. Returns null if no such data under this key was previously set.
Declaration
byte[] GetData(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
The key to look for
|
Returns
Type |
Description |
System.Byte[] |
|
StoreData(String, Byte[])
Store the given data persistently to the savegame.
Declaration
void StoreData(string name, byte[] data)
Parameters
Type |
Name |
Description |
System.String |
name |
Key value
|
System.Byte[] |
data |
|