Jazz2::Editor::EventStamp struct

Events the event tool places.

One event picked from the list, or several copied from the level, each at its offset from the tile clicked. Links the stamp has whole get identifiers of their own when it's placed, see RemapLinkedIds().

Public types

struct Item
An event of the stamp.
struct OffGridItem
An event of the stamp off the grid.

Public static functions

static auto FromEvent(const Formats::EventRecord& event) -> EventStamp
Makes a stamp of a single event.

Public functions

auto IsEmpty() const -> bool
Returns true if the stamp places nothing.
auto IsSingle() const -> bool
Returns true if the stamp is a single event on the grid.
auto GetFirst() const -> const Formats::EventRecord*
Returns the first event of the stamp, on the grid or off it, or nullptr if it's empty.

Public variables

SmallVector<Item, 1> Items
Events of the stamp on the grid.
SmallVector<OffGridItem, 0> OffGrid
Events of the stamp off the grid, placed with those on it.