Base API to create a custom undo event in a plug-in. 更多...
#include <HostUndoManager.h>
类 | |
struct | Interface |
Public 成员函数 | |
virtual BaseUndoEvent::Interface * | GetInterfacePointer () final |
virtual bool | Undo (Backend &in_backend)=0 |
Called when the user asks to undo an action. 更多... | |
virtual bool | Redo (Backend &in_backend)=0 |
Called when the user asks to redo an action. 更多... | |
virtual bool | GetName (const char **out_csName) const =0 |
Get the event name, to show after the "Undo " and "Redo " terms in the menu. 更多... | |
Public 成员函数 继承自 AK.Wwise::Plugin::V1::BaseUndoEvent | |
CUndoEvent::Instance * | GetInstancePointer () |
const CUndoEvent::Instance * | GetInstancePointer () const |
BaseUndoEvent () | |
virtual | ~BaseUndoEvent () |
Public 成员函数 继承自 ak_wwise_plugin_cpp_base_instance | |
virtual | ~ak_wwise_plugin_cpp_base_instance () |
额外继承的成员函数 | |
Public 类型 继承自 AK.Wwise::Plugin::V1::BaseUndoEvent | |
enum | : InterfaceTypeValue { k_interfaceType = AK_WWISE_PLUGIN_INTERFACE_TYPE_UNDO_EVENT } |
The interface type, as provided by this plug-in. 更多... | |
enum | : InterfaceVersion { k_interfaceVersion = 1 } |
The interface version, as provided by this plug-in. 更多... | |
using | Interface = CUndoEvent |
Base API to create a custom undo event in a plug-in.
This is useful when you handle custom properties, not handled by Property Sets.
Undo events should be derived by your undo class, providing UndoEvent::Undo, UndoEvent::Redo and UndoEvent::GetName methods.
No pointer to the backend class should be kept inside the undo event, as the object can be deleted and recreated when the plug-in gets removed through undo. The backend will be recreated at that point, making the pointer invalid.
Backend | The plug-in backend type. |
在文件 HostUndoManager.h 第 327 行定义.