Chris' Tutorials
Docs/Grid Placement

Class

PlacementActionHistory

Generated GDScript class reference for GridPlacement.PlacementActionHistory.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

Persistent action history for placement and manipulation events. Stores [PlacementActionData] and [ManipulationData] entries in a serializable [Resource] so the action log survives UI close / scene changes. Supports [ResourceSaver]/[ResourceLoader] round-trips out of the box because all state is [member action_entries] — an exported [Dictionary] whose keys are timestamps and values are one of the two data types. Usage: var history := PlacementActionHistory.new() history.add_entry(data) ResourceSaver.save(history, "user://action_history.res") var loaded := ResourceLoader.load("user://action_history.res") as PlacementActionHistory

Source: addons/grid_placement/resources/placement_action_history.gd

Syntax

class PlacementActionHistory extends Resource

Members

NameKindSummary
entry_addedEventEmitted whenever a new entry is added.
action_entriesPropertyOrdered entries. Keys are monotonically increasing frame-time integers; values are [PlacementActionData] or [ManipulationData]. Exported for [ResourceSaver] serialization (supported in Godot 4.4+).
auto_dump_pathPropertyAuto-dump path. When non-empty, the history is written to this path on [method dump_to_disk].
add_entryMethod
get_entriesMethod
entriesProperty
sorted_keysProperty
get_recent_entriesMethod
allProperty
startProperty
clearMethod
save_to_fileMethod
resultProperty
load_from_fileMethod
loadedProperty
historyProperty
dump_to_diskMethod
dump_to_textMethod
linesProperty
lineProperty
padProperty
tddProperty
mdProperty
textProperty
fileProperty

Source

addons/grid_placement/resources/placement_action_history.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs