Table of Contents

Class PlacedEntityData

Namespace
MoonBark.GridPlacement.Core.Services
Assembly
MoonBark.GridPlacement.Core.dll

Data transfer object for serialized placed entity state. Pure C# data structure with no Godot dependencies.

Only finalized placed entities are serialized. Active placement states (ghost previews, mid-move operations, flip/rotate in progress) are intentionally excluded — games resume with a clean placement state.

public class PlacedEntityData
Inheritance
PlacedEntityData
Inherited Members

Properties

CellHeight

Cell height.

public float CellHeight { get; set; }

Property Value

float

CellWidth

Cell width.

public float CellWidth { get; set; }

Property Value

float

FormatVersion

Save format version. Consumers should validate this on load. Current version: 1

public int FormatVersion { get; set; }

Property Value

int

GridX

Grid X position.

public int GridX { get; set; }

Property Value

int

GridY

Grid Y position.

public int GridY { get; set; }

Property Value

int

OwnerKey

The owner who placed this object.

public string OwnerKey { get; set; }

Property Value

string

PlaceableHash

The ID of the placeable type.

public int PlaceableHash { get; set; }

Property Value

int

Rotation

Rotation in degrees.

public int Rotation { get; set; }

Property Value

int

Timestamp

Timestamp of placement.

public long Timestamp { get; set; }

Property Value

long

WorldX

World X position.

public float WorldX { get; set; }

Property Value

float

WorldY

World Y position.

public float WorldY { get; set; }

Property Value

float