Skip to content

Get Sansar

Script API

DataStore.Options

Where: Client
More page actions

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

Struct Namespace Sansar.Simulation Added in 37.1.0

Controls how various DataStore operations proceed.

public struct DataStore.Options

Members at a glance

KindMembers
FieldsRetrieveData · SerializerOptions · Version

Fields

RetrieveData

Added in 37.1.0
public bool RetrieveData

DataStore.Store and DataStore.Delete will retrieve the existing data if this value is true, or if Options.Version is set and is not matched. Leaving this false will provide quicker responses and the value does not need to be returned or parsed.

SerializerOptions

Added in 37.1.0
public Sansar.Utility.JsonSerializerOptions SerializerOptions

Options to control json serialization

Version

Added in 37.1.0
public Nullable<int> Version

When set, DataStore.Store and DataStore.Delete will only proceed if the version of the data in the store matches this value. If the version does not match then the existing value and version will be returned.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.