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
Valuestring
Properties
Value
Gets the string value of the placeable ID.
public string Value { get; }
Property Value
Methods
FromString(string)
Creates a PlaceableId from a string.
public static PlaceableId FromString(string value)
Parameters
valuestring
Returns
ToString()
Returns the string representation of the placeable ID.
public override string ToString()
Returns
Operators
implicit operator string(PlaceableId)
Implicit conversion from PlaceableId to string.
public static implicit operator string(PlaceableId id)
Parameters
idPlaceableId
Returns
implicit operator PlaceableId(string)
Implicit conversion from string to PlaceableId.
public static implicit operator PlaceableId(string value)
Parameters
valuestring