Files
2026-09-26 16:32:40 +03:00

14 lines
695 B
Go

// Package scene implements the runtime node graph: hierarchy, transforms and
// components.
//
// Structural changes are deferred. Destroy, Remove and Reparent take effect
// logically at once (IsAlive, Has and Get report the new state immediately)
// but are applied to storage at Flush. Add is the mirror image: the data is
// written to a pending buffer and visible through Get straight away, yet it
// only enters iteration — Each, Data, Query — after Flush. A system that adds
// components while walking a store therefore cannot loop over its own output.
//
// Pointers returned by Add and Get are valid until the end of the current
// phase. Keep a NodeHandle instead.
package scene