Show / Hide Table of Contents

Class AN_Snapshot

Data interface for a representation of a saved game. This includes both the metadata and the actual game content.

Inheritance
System.Object
AN_Snapshot
Namespace: SA.Android.GMS.Games
Assembly: cs.temp.dll.dll
Syntax
public class AN_Snapshot : AN_LinkedObject

Methods

GetMetadata()

Retrieves the metadata for this snapshot.

Declaration
public AN_SnapshotMetadata GetMetadata()
Returns
Type Description
AN_SnapshotMetadata

ReadFully()

Read the contents of a snapshot.

If this snapshot was not opened via , or if the contents have already been committed via CommitAndClose(AN_Snapshot, AN_SnapshotMetadataChange, Action<AN_SnapshotMetadataResult>) this method will throw an exception.

Declaration
public byte[] ReadFully()
Returns
Type Description
System.Byte[]

WriteBytes(Byte[])

Write the specified data into the snapshot. The contents of the snapshot will be replaced with the data provided in content. The data will be persisted on disk, but is not uploaded to the server until the snapshot is committed via CommitAndClose(AN_Snapshot, AN_SnapshotMetadataChange, Action<AN_SnapshotMetadataResult>)

If this snapshot was not opened via , or if the contents have already been committed via CommitAndClose(AN_Snapshot, AN_SnapshotMetadataChange, Action<AN_SnapshotMetadataResult>) this method will throw an exception.

Declaration
public void WriteBytes(byte[] content)
Parameters
Type Name Description
System.Byte[] content

The data to write.

In This Article
Back to top Generated by DocFX