yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
extension.h
Go to the documentation of this file.
1#ifndef EXTENSION_INTERFACE_H
2#define EXTENSION_INTERFACE_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include "yaze.h"
9
10typedef void (*yaze_initialize_func)(yaze_editor_context* context);
11typedef void (*yaze_cleanup_func)(void);
12typedef void (*yaze_extend_ui_func)(yaze_editor_context* context);
13typedef void (*yaze_manipulate_rom_func)(z3_rom* rom);
14typedef void (*yaze_command_func)(void);
15typedef void (*yaze_event_hook_func)(void);
16
23
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif // EXTENSION_INTERFACE_H
yaze_event_type
Definition extension.h:17
@ YAZE_EVENT_ROM_SAVED
Definition extension.h:19
@ YAZE_EVENT_PALETTE_CHANGED
Definition extension.h:21
@ YAZE_EVENT_SPRITE_MODIFIED
Definition extension.h:20
@ YAZE_EVENT_ROM_LOADED
Definition extension.h:18
void(* yaze_event_hook_func)(void)
Definition extension.h:15
void(* yaze_manipulate_rom_func)(z3_rom *rom)
Definition extension.h:13
void(* yaze_command_func)(void)
Definition extension.h:14
void(* yaze_cleanup_func)(void)
Definition extension.h:11
struct yaze_extension yaze_extension
Extension interface for Yaze.
void(* yaze_extend_ui_func)(yaze_editor_context *context)
Definition extension.h:12
void(* yaze_initialize_func)(yaze_editor_context *context)
Definition extension.h:10
Extension editor context.
Definition yaze.h:42
Extension interface for Yaze.
Definition extension.h:29
yaze_command_func register_custom_tools
Register custom tools in the yaze_command_registry.
Definition extension.h:77
yaze_initialize_func initialize
Function to initialize the extension.
Definition extension.h:39
const char * version
Definition extension.h:31
void(* register_event_hooks)(yaze_event_type event, yaze_event_hook_func hook)
Register event hooks in the yaze_event_dispatcher.
Definition extension.h:82
yaze_manipulate_rom_func manipulate_rom
Function to manipulate the ROM.
Definition extension.h:55
yaze_cleanup_func cleanup
Function to clean up the extension.
Definition extension.h:47
yaze_command_func register_commands
Register commands in the yaze_command_registry.
Definition extension.h:72
yaze_extend_ui_func extend_ui
Function to extend the UI.
Definition extension.h:67
const char * name
Definition extension.h:30
Primitive of a Zelda3 ROM.
Definition yaze.h:89