Jazz2/Editor/Events/EventPreviewResolver.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::Editor

Classes

struct Jazz2::Editor::EventPreviewSpec
How an event is drawn, as the object it spawns looks with its parameters.

Functions

auto ResolveEventPreview(const Formats::EventRecord& event, EventPreviewSpec& spec) -> bool
Finds how an event is drawn with its parameters.

Function documentation

bool ResolveEventPreview(const Formats::EventRecord& event, EventPreviewSpec& spec)

Finds how an event is drawn with its parameters.

Mirrors what the object the event spawns chooses when it's activated — its metadata, animation, which way it faces and where it moves itself. Only the events whose look depends on more than the value of one of their parameters are here, the others are described by their EventDescriptor::PreviewCases. Returns false for any other event, it's drawn as the catalog says then (see EventDescriptor::PreviewMetadata).