All pages
Powered by GitBook
1 of 1

Loading...

Client

Client Class

The Client class is used for access to the Client connected to a Sansar.Simulation.AgentPrivate.

Syntax

Member Details

AgentInfo Property

Syntax

[get: Sansar.Script.Interface] public AgentInfo { get; }

Value

The for this instance

ClearTutorialHint Method

Clears any scripted tutorial hint being shown to the player

Syntax

[Sansar.Script.Interface] public ClearTutorialHint ()

ClearTutorialHint Method

Clears any scripted tutorial hint being shown to the player

Syntax

Parameters

handler

Handler to be called when the event completes.

EnableAutomaticTutorialHints Method

Enables / Disables automatic (non-scripted) tutorial hints.

Syntax

[Sansar.Script.Interface] public EnableAutomaticTutorialHints ( enabled)

Parameters

enabled

Enabled state of automatic hints.

EnableAutomaticTutorialHints Method

Enables / Disables automatic (non-scripted) tutorial hints.

Syntax

Parameters

enabled

Enabled state of automatic hints.

handler

OpenQuestCharacterDialog Method

Opens the quest dialog for a character.

Syntax

[Sansar.Script.Interface] public OpenQuestCharacterDialog ( character)

Parameters

character

The character to open the quest dialog for.

OpenStoreListing Method

Opens the product's Store page.

Syntax

[Sansar.Script.Interface] public OpenStoreListing ( productId)

Parameters

productId

A product ID from a Sansar store listing.

SendChat Method

Sends a message to the $className$.

Syntax

[Sansar.Script.Interface] [System.Obsolete("Deprecated. Use AgentPrivate.SendChat or AgentPublic.SendChat", false)] public SendChat ( message)

Parameters

message

Type
Reason

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


ShowTutorialHint Method

Show a tutorial hint to the player

Syntax

[Sansar.Script.Interface] public ShowTutorialHint ( hint)

Parameters

hint

The hint to show.

ShowTutorialHint Method

Show a tutorial hint to the player

Syntax

Parameters

hint

The hint to show.

handler

Handler to be called when the event completes.

SubscribeToCommand Method

Subscribes to Command Events.

Syntax

See Also

Parameters

Command

The command which occurred.

SubscribeToCommand Method

Subscribes to Command Events.

Syntax

See Also

Parameters

Command

The command which occurred.

TeleportTo Method

Teleports to the position facing the specified direction

Syntax

Parameters

position

The teleport destination position.

forward

TeleportToLocation Method

Teleports the personaHandle to the locationHandle.

Syntax

[Sansar.Script.Interface] public TeleportToLocation ( avatarId, locationHandle)

Parameters

avatarId

TeleportToUri Method

Teleports to the specified URI

Syntax

[Sansar.Script.Interface] public TeleportToUri ( sansarUri)

Parameters

sansarUri

The URI to teleport to.

ToString Method

A string representation of this object.

Syntax

[Sansar.Script.Interface] public override ToString ()

Returns

A string representation of this object.

UI Property

Syntax

[get: Sansar.Script.Interface] public UI { get; }

Value

The for this instance

VibrationPulse Method

Pulses the vibration haptic motor for a control point.

Syntax

Parameters

type

See

intensity


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Handler to be called when the event completes.

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


The message to send.

Exceptions

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


callback

Callback which is executed when the event completes.

canceled

Callback which is executed when the subscription is canceled.

persistent

Optional, set to false to unsubscribe after one event.

Returns

An Sansar.Script.IEventSubscription that can be used to cancel the subscription.

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Action

The action which occurred.

callback

Callback which is executed when the event completes.

canceled

Callback which is executed when the subscription is canceled.

persistent

Optional, set to false to unsubscribe after one event.

Returns

An Sansar.Script.IEventSubscription that can be used to cancel the subscription.

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


The teleport destination forward direction.

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


The
of the destination creator.

locationHandle

The SceneInfo.LocationHandle of the destination.

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Intensity of vibration. Intensity will be clamped to the range [0, 1].

duration

Duration of the pulse in milliseconds. Will be clamped to the range [0, 1000].

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


NullReferenceException

If the user is no longer online.

Sansar.Script.ThrottleException

If the throttle rate is exceeded.

AgentInfo
Sansar.Simulation.AgentInfo
void
void
bool
void
QuestCharacter
void
Guid
string
void
string
void
TutorialHint
void
string
string
void
string
string
UI
Sansar.Simulation.UI
Sansar.Simulation.ControlPointType
SceneInfo.AvatarId