yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "incl/overworld.h"
#include "incl/snes_color.h"
#include "incl/sprite.h"
Include dependency graph for yaze.h:
This graph shows which files directly or indirectly include this file:

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_projectyaze_load_project (const char *filename)
 
z3_romyaze_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_overworldyaze_load_overworld (const z3_rom *rom)
 

Typedef Documentation

◆ z3_rom

typedef struct z3_rom z3_rom

Definition at line 15 of file yaze.h.

◆ yaze_flags

typedef struct yaze_flags yaze_flags

Definition at line 16 of file yaze.h.

◆ yaze_project

typedef struct yaze_project yaze_project

Definition at line 17 of file yaze.h.

◆ yaze_command_registry

typedef struct yaze_command_registry yaze_command_registry

Definition at line 19 of file yaze.h.

◆ yaze_event_dispatcher

typedef struct yaze_event_dispatcher yaze_event_dispatcher

Definition at line 28 of file yaze.h.

◆ yaze_editor_context

typedef struct yaze_editor_context yaze_editor_context

Definition at line 37 of file yaze.h.

Function Documentation

◆ yaze_check_version()

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().

Here is the call graph for this function:

◆ yaze_init()

int yaze_init ( yaze_flags * flags)

Initialize the Yaze library.

Parameters
flagsFlags 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().

Here is the call graph for this function:

◆ yaze_cleanup()

void yaze_cleanup ( yaze_flags * flags)

Clean up the Yaze library.

Parameters
flagsFlags 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().

Here is the call graph for this function:

◆ yaze_load_project()

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().

Here is the call graph for this function:

◆ 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().

Here is the call graph for this function:

◆ yaze_unload_rom()

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().

◆ yaze_get_color_from_paletteset()

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().

Here is the call graph for this function:

◆ yaze_load_overworld()

z3_overworld * yaze_load_overworld ( const z3_rom * rom)