Table of Contents

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

ManipulationMetadata

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

bool

ManipulationDuration

Duration of the manipulation operation.

public TimeSpan? ManipulationDuration { get; init; }

Property Value

TimeSpan?

ManipulationSource

Source of the manipulation operation.

public string? ManipulationSource { get; init; }

Property Value

string

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

source string

Returns

ManipulationMetadata