VideoCommon: add graphics mod editor events

This commit is contained in:
iwubcode 2023-07-24 00:41:10 -05:00
parent 91825578cb
commit 0512bd9a18

View file

@ -0,0 +1,30 @@
// Copyright 2023 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <set>
#include "Common/HookableEvent.h"
#include "VideoCommon/Assets/CustomAssetLibrary.h"
#include "VideoCommon/GraphicsModEditor/EditorTypes.h"
namespace GraphicsModEditor::EditorEvents
{
// Event called when a target or action is selected
using ItemsSelectedEvent = Common::HookableEvent<"ItemsSelected", std::set<SelectableType>>;
// Event called when a change that can be saved occurs
using ChangeOccurredEvent = Common::HookableEvent<"ChangeOccurred">;
// Event called when an asset should reload, the event provides the asset id
// for use in the loader
// Will also trigger the above ChangeOccurred event
using AssetReloadEvent =
Common::HookableEvent<"AssetReload", VideoCommon::CustomAssetLibrary::AssetID>;
// Event called when requesting an asset in the asset browser
using JumpToAssetInBrowserEvent =
Common::HookableEvent<"JumpToAssetInBrowser", VideoCommon::CustomAssetLibrary::AssetID>;
} // namespace GraphicsModEditor::EditorEvents