Skip to content

Namespace Apogee.Host.Editing

Classes

AddComponentCommand

Adds a component (zeroed, or with the given initial bytes; a tag has none).

CompositeCommand

Several commands that are one step.

CreateEntityCommand

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.

DestroyEntityCommand

Deletes an entity and its branch, and brings them back under the same ids on undo.

EditHistory

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 is called, which the editor does when the gesture ends.

RemoveComponentCommand

Removes a component, keeping its value for the undo.

RenameCommand

Renames an entity. Names have to be unique among siblings, so the caller checks .

ReparentCommand

Gives an entity a new parent (none: a root), keeping it where it is in the world by default.

SetComponentCommand

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".

WorldRef

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 converts to one that is always that world.

Interfaces

IEditCommand

One undoable edit of a world.