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
Valuestring
Fields
Default
Default owner ID for single-player scenarios.
public static readonly OwnerId Default
Field Value
Properties
Value
Gets the string value of the owner ID.
public string Value { get; }
Property Value
Methods
FromString(string)
Creates an OwnerId from a string.
public static OwnerId FromString(string value)
Parameters
valuestring
Returns
ToString()
Returns the string representation of the owner ID.
public override string ToString()
Returns
Operators
implicit operator string(OwnerId)
Implicit conversion from OwnerId to string.
public static implicit operator string(OwnerId id)
Parameters
idOwnerId
Returns
implicit operator OwnerId(string)
Implicit conversion from string to OwnerId.
public static implicit operator OwnerId(string value)
Parameters
valuestring