Encapsulates an Cluster Id.
public struct ClusterIdMembers at a glance
| Kind | Members |
|---|---|
| Fields | Invalid |
| Methods | Equals · GetHashCode · ToString |
| Operators | op_Equality · op_Implicit · op_Inequality |
Fields
Invalid
public static readonly ClusterId InvalidThe invalid id object.
Methods
Equals
public override bool Equals(object obj)Value comparison for ClusterId.
| Parameter | Type | Description |
|---|---|---|
obj | object | The 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.
| Parameter | Type | Description |
|---|---|---|
a | ClusterId | First ClusterId to compare. |
b | ClusterId | Second 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.
| Parameter | Type | Description |
|---|---|---|
id | uint | A uint representation of an ClusterId |
op_Inequality
public static bool operator !=(ClusterId a, ClusterId b)ClusterId inequality operator.
| Parameter | Type | Description |
|---|---|---|
a | ClusterId | First ClusterId to compare. |
b | ClusterId | Second ClusterId to compare. |
Returns: bool — true if the ClusterIds have a different value.
Generated from the Sansar 47.10.0 client ScriptApi snapshot.