mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
Make CustomEvents more useful by adding the payload as a string
This commit is contained in:
@@ -401,10 +401,10 @@ struct EventPointJwstRequested : public Event {
|
||||
struct CustomEvent : public Event {
|
||||
static const Type Type = Event::Type::Custom;
|
||||
|
||||
CustomEvent(std::string_view subtype_, const void* payload_);
|
||||
CustomEvent(std::string_view subtype_, std::string_view payload_);
|
||||
|
||||
const tstring subtype;
|
||||
const void* payload = nullptr;
|
||||
const tstring payload;
|
||||
};
|
||||
|
||||
} // namespace openspace::events
|
||||
|
||||
Reference in New Issue
Block a user