Class SavedGame
Inheritance
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public class SavedGame
Properties
CoverImageURL
[GPGS only] If Google Play Game Services platform is in use, this returns a URL corresponding to the PNG-encoded image corresponding to this saved game, which may be null if the saved game does not have a cover image. This value will always be null if Google Play Games Services platform is not in use.
Declaration
public string CoverImageURL { get; }
Property Value
Type | Description |
---|---|
System.String | The cover image URL. |
Description
[GPGS only] If Google Play Game Services platform is in use, this returns
a human-readable description of the saved game, which may be null.
This value will always be null if Google Play Games Services platform is not in use.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The saved game description. |
DeviceName
[iOS only] The name of the device that committed the saved game data. If the saved game has just been opened with no data committed, this will be null. This value will be null on non-iOS platforms.
Declaration
public string DeviceName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the iOS device. |
IsOpen
Returns true if this saved game is opened and can be used for other operations (i.e. read, write). Saved games returned by Open operations will be "Open". After a Write or Resolve Conflicts operation, the corresponding saved game will be closed, and this value will be false.
Declaration
public bool IsOpen { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ModificationDate
A timestamp corresponding to the last modification to the underlying saved game. If the saved game is newly created, this value will correspond to the time the first Open occurred. Otherwise, this corresponds to time the last successful write or conflict resolution occurred.
Declaration
public DateTime ModificationDate { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The last modification timestamp. |
Name
Returns the name of this saved game. A saved game name will only consist of non-URL reserved characters (i.e. a-z, A-Z, 0-9, or the symbols "-", ".", "_", or "~") and have between 1 and 100 characters in length (inclusive).
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the saved game. |
TotalTimePlayed
[GPGS only] If Google Play Game Services platform is in use, this returns the total time played by the player for this saved game. This value is developer-specified and may be tracked in any way that is appropriate to the game. Note that this value is specific to this specific saved game (unless the developer intentionally sets the same value on all saved games). If the value was not set, or Google Play Games Services platform is not in use, this will be equal to
TimeSpan.FromMilliseconds(0)
.
Declaration
public TimeSpan TotalTimePlayed { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The total time played. |