Extension interface for Yaze. More...
#include <extension.h>
Public Attributes | |
const char * | name |
const char * | version |
yaze_initialize_func | initialize |
Function to initialize the extension. | |
yaze_cleanup_func | cleanup |
Function to clean up the extension. | |
yaze_manipulate_rom_func | manipulate_rom |
Function to manipulate the ROM. | |
yaze_extend_ui_func | extend_ui |
Function to extend the UI. | |
yaze_command_func | register_commands |
Register commands in the yaze_command_registry. | |
yaze_command_func | register_custom_tools |
Register custom tools in the yaze_command_registry. | |
void(* | register_event_hooks )(yaze_event_type event, yaze_event_hook_func hook) |
Register event hooks in the yaze_event_dispatcher. | |
Extension interface for Yaze.
Yaze extensions can be written in C or Python.
Definition at line 29 of file extension.h.
const char* yaze_extension::name |
Definition at line 30 of file extension.h.
Referenced by BOOST_PYTHON_MODULE().
const char* yaze_extension::version |
Definition at line 31 of file extension.h.
Referenced by BOOST_PYTHON_MODULE().
yaze_initialize_func yaze_extension::initialize |
Function to initialize the extension.
This function is called when the extension is loaded. It can be used to set up any resources or state needed by the extension.
Definition at line 39 of file extension.h.
Referenced by yaze::app::editor::ExtensionManager::LoadExtension().
yaze_cleanup_func yaze_extension::cleanup |
Function to clean up the extension.
This function is called when the extension is unloaded. It can be used to clean up any resources or state used by the extension.
Definition at line 47 of file extension.h.
yaze_manipulate_rom_func yaze_extension::manipulate_rom |
Function to manipulate the ROM.
rom | The ROM to manipulate. |
Definition at line 55 of file extension.h.
yaze_extend_ui_func yaze_extension::extend_ui |
Function to extend the UI.
context | The editor context. |
This function is called when the extension is loaded. It can be used to add custom UI elements to the editor. The context parameter provides access to the project, command registry, event dispatcher, and ImGui context.
Definition at line 67 of file extension.h.
yaze_command_func yaze_extension::register_commands |
Register commands in the yaze_command_registry.
Definition at line 72 of file extension.h.
yaze_command_func yaze_extension::register_custom_tools |
Register custom tools in the yaze_command_registry.
Definition at line 77 of file extension.h.
void(* yaze_extension::register_event_hooks) (yaze_event_type event, yaze_event_hook_func hook) |
Register event hooks in the yaze_event_dispatcher.
Definition at line 82 of file extension.h.