Table of Contents

Struct PlaceableId

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

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

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

Constructors

PlaceableId(string)

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

public PlaceableId(string Value)

Parameters

Value string

Properties

Value

Gets the string value of the placeable ID.

public string Value { get; }

Property Value

string

Methods

FromString(string)

Creates a PlaceableId from a string.

public static PlaceableId FromString(string value)

Parameters

value string

Returns

PlaceableId

ToString()

Returns the string representation of the placeable ID.

public override string ToString()

Returns

string

Operators

implicit operator string(PlaceableId)

Implicit conversion from PlaceableId to string.

public static implicit operator string(PlaceableId id)

Parameters

id PlaceableId

Returns

string

implicit operator PlaceableId(string)

Implicit conversion from string to PlaceableId.

public static implicit operator PlaceableId(string value)

Parameters

value string

Returns

PlaceableId