Class ManipulationMetadata
- Namespace
- MoonBark.GridPlacement.Core.Types
- Assembly
- MoonBark.GridPlacement.Core.dll
Strongly-typed metadata for manipulation operations.
public record ManipulationMetadata : IEquatable<ManipulationMetadata>
- Inheritance
-
ManipulationMetadata
- Implements
- Inherited Members
Fields
Empty
Creates an empty ManipulationMetadata.
public static readonly ManipulationMetadata Empty
Field Value
Properties
EntityId
Entity ID being manipulated (if applicable).
public long? EntityId { get; init; }
Property Value
- long?
IsPreview
Whether the manipulation was a preview or actual manipulation.
public bool IsPreview { get; init; }
Property Value
ManipulationDuration
Duration of the manipulation operation.
public TimeSpan? ManipulationDuration { get; init; }
Property Value
ManipulationSource
Source of the manipulation operation.
public string? ManipulationSource { get; init; }
Property Value
OriginalPosition
Original position before manipulation.
public CoreVector2I? OriginalPosition { get; init; }
Property Value
- CoreVector2I?
Methods
WithSource(string)
Creates a ManipulationMetadata with the specified source.
public static ManipulationMetadata WithSource(string source)
Parameters
sourcestring