1#include <boost/python.hpp>
3#include "incl/extension.h"
10 using namespace boost::python;
12 class_<z3_rom>(
"z3_rom")
18 class_<snes_color>(
"snes_color")
23 class_<snes_palette>(
"snes_palette")
28 class_<z3_sprite>(
"sprite")
32 class_<yaze_flags>(
"yaze_flags")
33 .def_readwrite(
"debug", &yaze_flags::debug)
34 .def_readwrite(
"rom_filename", &yaze_flags::rom_filename)
35 .def_readwrite(
"rom", &yaze_flags::rom);
37 class_<yaze_project>(
"yaze_project")
40 class_<yaze_editor_context>(
"yaze_editor_context")
43 enum_<yaze_event_type>(
"yaze_event_type")
49 class_<yaze_extension>(
"yaze_extension")
56 return_value_policy<manage_new_object>());
@ YAZE_EVENT_PALETTE_CHANGED
@ YAZE_EVENT_SPRITE_MODIFIED
void yaze_unload_rom(z3_rom *rom)
Unload a Zelda3 ROM.
void yaze_check_version(const char *version)
Check the version of the Yaze library.
z3_rom * yaze_load_rom(const char *filename)
Load a Zelda3 ROM from a file.
snes_color yaze_get_color_from_paletteset(const z3_rom *rom, int palette_set, int palette, int color)
Get a color from a palette set.
BOOST_PYTHON_MODULE(yaze_py)