Skip to content

Get Sansar

Script API

ClusterId

Where: Client
More page actions

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

Struct Namespace Sansar.Simulation

Encapsulates an Cluster Id.

public struct ClusterId

Members at a glance

KindMembers
FieldsInvalid
MethodsEquals · GetHashCode · ToString
Operatorsop_Equality · op_Implicit · op_Inequality

Fields

Invalid

public static readonly ClusterId Invalid

The invalid id object.

Methods

Equals

public override bool Equals(object obj)

Value comparison for ClusterId.

ParameterTypeDescription
objobjectThe object to compare.

Returns: bool — true if the argument is an ClusterId and has the same value.

GetHashCode

public override int GetHashCode()

Retrieves the hash code for this instance.

Returns: int — The hash code for this instance.

ToString

public override string ToString()

Converts the id to a hexadecimal string representation.

Returns: string — The hexadecimal string representation.

Operators

op_Equality

public static bool operator ==(ClusterId a, ClusterId b)

ClusterId equality operator.

ParameterTypeDescription
aClusterIdFirst ClusterId to compare.
bClusterIdSecond ClusterId to compare.

Returns: bool — true if the ClusterIds have the same value.

op_Implicit

public static implicit operator ClusterId(uint id)

Internal explicit conversion from a uint.

ParameterTypeDescription
iduintA uint representation of an ClusterId

op_Inequality

public static bool operator !=(ClusterId a, ClusterId b)

ClusterId inequality operator.

ParameterTypeDescription
aClusterIdFirst ClusterId to compare.
bClusterIdSecond ClusterId to compare.

Returns: bool — true if the ClusterIds have a different value.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.