Namespace Apogee.Host.Editing¶
Classes¶
Adds a component (zeroed, or with the given initial bytes; a tag has none).
Several commands that are one step.
Makes an entity (with create: a new one, a clone, a model dropped into the viewport) and removes it again on undo. Redoing brings it back under the id it had.
Deletes an entity and its branch, and brings them back under the same ids on undo.
The undo and redo history of an editor: commands are executed through it, and it can take them back and do them again. A new command after an undo drops what could have been redone. Consecutive
commands that merge (the many small changes of a drag) are one step until
Removes a component, keeping its value for the undo.
Renames an entity. Names have to be unique among siblings, so the caller checks
Gives an entity a new parent (none: a root), keeping it where it is in the world by default.
Changes the value of a component on an entity (an inspector field). The changes of one gesture merge: the command keeps the first "before" and the last "after".
The world a command acts on, looked up each time it runs: an editor replaces its world (a play run, then back to editing) and the history has to follow it. A
Interfaces¶
One undoable edit of a world.