Jazz2::Editor::AnnotationCache class

Bookmarks and notes of a level, read again only when they change.

They're drawn every frame, reading them each time would make strings of all the notes over and over.

Public functions

auto Get(const LevelDocument& document) -> const SmallVectorImpl<Annotation>&
Returns the bookmarks and notes of a level.
auto GetVersion() const -> std::uint32_t
Returns a number that changes each time they're read again, see Get().