#include <stddef.h>
#include <stdint.h>
#include "incl/overworld.h"
#include "incl/snes_color.h"
#include "incl/sprite.h"
Go to the source code of this file.
Classes | |
struct | yaze_command_registry |
Command registry. More... | |
struct | yaze_event_dispatcher |
Event dispatcher. More... | |
struct | yaze_editor_context |
Extension editor context. More... | |
struct | yaze_flags |
Flags to initialize the Yaze library. More... | |
struct | yaze_project |
Primitive of a Yaze project. More... | |
struct | z3_rom |
Primitive of a Zelda3 ROM. More... | |
Typedefs | |
typedef struct z3_rom | z3_rom |
typedef struct yaze_flags | yaze_flags |
typedef struct yaze_project | yaze_project |
typedef struct yaze_command_registry | yaze_command_registry |
typedef struct yaze_event_dispatcher | yaze_event_dispatcher |
typedef struct yaze_editor_context | yaze_editor_context |
Functions | |
void | yaze_check_version (const char *version) |
int | yaze_init (yaze_flags *) |
Initialize the Yaze library. | |
void | yaze_cleanup (yaze_flags *) |
Clean up the Yaze library. | |
yaze_project * | yaze_load_project (const char *filename) |
z3_rom * | yaze_load_rom (const char *filename) |
Load a Zelda3 ROM from a file. | |
void | yaze_unload_rom (z3_rom *rom) |
Unload a Zelda3 ROM. | |
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. | |
z3_overworld * | yaze_load_overworld (const z3_rom *rom) |
void yaze_check_version | ( | const char * | version | ) |
Definition at line 8 of file yaze.cc.
References yaze::app::core::CheckVersion().
Referenced by BOOST_PYTHON_MODULE().
int yaze_init | ( | yaze_flags * | flags | ) |
Initialize the Yaze library.
flags | Flags to initialize the library. |
Definition at line 20 of file yaze.cc.
References yaze_flags::rom, yaze_flags::rom_filename, and yaze_load_rom().
Referenced by yaze::test::TEST(), and yaze::test::TEST().
void yaze_cleanup | ( | yaze_flags * | flags | ) |
Clean up the Yaze library.
flags | Flags used to initialize the library. |
Definition at line 37 of file yaze.cc.
References yaze_flags::rom, and yaze_unload_rom().
Referenced by yaze::test::TEST(), and yaze::test::TEST().
yaze_project * yaze_load_project | ( | const char * | filename | ) |
Definition at line 43 of file yaze.cc.
References yaze_project::filename, yaze_project::overworld, yaze_project::rom, yaze_load_overworld(), and yaze_load_rom().
z3_rom * yaze_load_rom | ( | const char * | filename | ) |
Load a Zelda3 ROM from a file.
Definition at line 51 of file yaze.cc.
References yaze::app::Rom::data(), z3_rom::data, z3_rom::filename, z3_rom::impl, yaze::app::Rom::LoadFromFile(), yaze::app::Rom::size(), and z3_rom::size.
Referenced by BOOST_PYTHON_MODULE(), yaze_init(), and yaze_load_project().
void yaze_unload_rom | ( | z3_rom * | rom | ) |
Unload a Zelda3 ROM.
Definition at line 67 of file yaze.cc.
References z3_rom::impl.
Referenced by BOOST_PYTHON_MODULE(), and yaze_cleanup().
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.
Definition at line 77 of file yaze.cc.
References snes_color::blue, snes_color::green, z3_rom::impl, yaze::app::gfx::kPaletteGroupAddressesKeys, yaze::app::Rom::palette_group(), and snes_color::red.
Referenced by BOOST_PYTHON_MODULE().
z3_overworld * yaze_load_overworld | ( | const z3_rom * | rom | ) |
Definition at line 102 of file yaze.cc.
References z3_overworld_map::id, z3_overworld::impl, z3_rom::impl, yaze::app::zelda3::overworld::Overworld::Load(), z3_overworld::maps, and yaze::app::zelda3::overworld::Overworld::overworld_maps().
Referenced by yaze_load_project().