Skip to content

Get Sansar

Script API

DataStore.Result<T>

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation Inherits Sansar.Utility.JsonSerializationData<T> Added in 37.1.0

Holds the result of operations on a DataStore.

public class DataStore.Result<T> : Sansar.Utility.JsonSerializationData<T>

Type parameters: T: The type of the result.

Remarks

Properties used my depend on the method called and options. The type used must be able to be serialized with the JsonSerializer.

Members at a glance

KindMembers
PropertiesVersion
MethodsToString

Properties

Version

Added in 37.1.0
public int Version { get; }

Version of the value for the key used for this operation.

Value: int — An integer version number for the data in the store.

Remarks

Each write to a given key will update this value, even if the same value is written. To ensure that one script is not clobbering writes by another script the Options.Version can verify that the data has not changed.

Methods

ToString

Added in 37.1.0
public override string ToString()

A string representation of this object.

Returns: string — A string representation of this object.

Remarks

The format of this string may change between releases.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.