# ClusterId

Kind: Struct · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-struct" data-pagefind-filter="kind:Struct">Struct</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
</div>

<span id="T:Sansar.Simulation.ClusterId"></span>

Encapsulates an Cluster Id.

```csharp
public struct ClusterId
```

## Members at a glance

| Kind | Members |
|---|---|
| **Fields** | [Invalid](#invalid) |
| **Methods** | [Equals](#equals) · [GetHashCode](#gethashcode) · [ToString](#tostring) |
| **Operators** | [op\_Equality](#op_equality) · [op\_Implicit](#op_implicit) · [op\_Inequality](#op_inequality) |

## Fields

### Invalid

<div class="api-card">
<span id="F:Sansar.Simulation.ClusterId.Invalid"></span>

```csharp signature
public static readonly ClusterId Invalid
```

The invalid id object.

</div>


## Methods

### Equals

<div class="api-card">
<span id="M:Sansar.Simulation.ClusterId.Equals(System.Object)"></span>

```csharp signature
public override bool Equals(object obj)
```

Value comparison for ClusterId.

| Parameter | Type | Description |
|---|---|---|
| `obj` | [object](https://learn.microsoft.com/dotnet/api/system.object) | The object to compare. |

**Returns:** [bool](https://learn.microsoft.com/dotnet/api/system.boolean) — true if the argument is an ClusterId and has the same value.

</div>

### GetHashCode

<div class="api-card">
<span id="M:Sansar.Simulation.ClusterId.GetHashCode"></span>
<span id="M:Sansar.Simulation.ClusterId.GetHashCode()"></span>

```csharp signature
public override int GetHashCode()
```

Retrieves the hash code for this instance.

**Returns:** [int](https://learn.microsoft.com/dotnet/api/system.int32) — The hash code for this instance.

</div>

### ToString

<div class="api-card">
<span id="M:Sansar.Simulation.ClusterId.ToString"></span>
<span id="M:Sansar.Simulation.ClusterId.ToString()"></span>

```csharp signature
public override string ToString()
```

Converts the id to a hexadecimal string representation.

**Returns:** [string](https://learn.microsoft.com/dotnet/api/system.string) — The hexadecimal string representation.

</div>


## Operators

### op_Equality

<div class="api-card">
<span id="M:Sansar.Simulation.ClusterId.op_Equality(Sansar.Simulation.ClusterId,Sansar.Simulation.ClusterId)"></span>

```csharp signature
public static bool operator ==(ClusterId a, ClusterId b)
```

ClusterId equality operator.

| Parameter | Type | Description |
|---|---|---|
| `a` | [ClusterId](/scripting/api/sansar.simulation/clusterid) | First ClusterId to compare. |
| `b` | [ClusterId](/scripting/api/sansar.simulation/clusterid) | Second ClusterId to compare. |

**Returns:** [bool](https://learn.microsoft.com/dotnet/api/system.boolean) — true if the ClusterIds have the same value.

</div>

### op_Implicit

<div class="api-card">
<span id="M:Sansar.Simulation.ClusterId.op_Implicit(System.UInt32)~Sansar.Simulation.ClusterId"></span>

```csharp signature
public static implicit operator ClusterId(uint id)
```

Internal explicit conversion from a uint.

| Parameter | Type | Description |
|---|---|---|
| `id` | [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | A uint representation of an ClusterId |

</div>

### op_Inequality

<div class="api-card">
<span id="M:Sansar.Simulation.ClusterId.op_Inequality(Sansar.Simulation.ClusterId,Sansar.Simulation.ClusterId)"></span>

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

ClusterId inequality operator.

| Parameter | Type | Description |
|---|---|---|
| `a` | [ClusterId](/scripting/api/sansar.simulation/clusterid) | First ClusterId to compare. |
| `b` | [ClusterId](/scripting/api/sansar.simulation/clusterid) | Second ClusterId to compare. |

**Returns:** [bool](https://learn.microsoft.com/dotnet/api/system.boolean) — true if the ClusterIds have a different value.

</div>




<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>