Table of Contents

Struct OwnerId

Namespace
MoonBark.GridPlacement.Core.Types
Assembly
MoonBark.GridPlacement.Core.dll

Strongly-typed identifier for owners. Prevents string typos and provides compile-time type safety.

public readonly record struct OwnerId : IEquatable<OwnerId>
Implements
Inherited Members

Constructors

OwnerId(string)

Strongly-typed identifier for owners. Prevents string typos and provides compile-time type safety.

public OwnerId(string Value)

Parameters

Value string

Fields

Default

Default owner ID for single-player scenarios.

public static readonly OwnerId Default

Field Value

OwnerId

Properties

Value

Gets the string value of the owner ID.

public string Value { get; }

Property Value

string

Methods

FromString(string)

Creates an OwnerId from a string.

public static OwnerId FromString(string value)

Parameters

value string

Returns

OwnerId

ToString()

Returns the string representation of the owner ID.

public override string ToString()

Returns

string

Operators

implicit operator string(OwnerId)

Implicit conversion from OwnerId to string.

public static implicit operator string(OwnerId id)

Parameters

id OwnerId

Returns

string

implicit operator OwnerId(string)

Implicit conversion from string to OwnerId.

public static implicit operator OwnerId(string value)

Parameters

value string

Returns

OwnerId