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 "dungeon.h"
#include "overworld.h"
#include "snes_color.h"
#include "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_editor_context
 Extension editor context. More...
 
struct  yaze_project
 Primitive of a Yaze project. More...
 
struct  z3_rom
 Primitive of a Zelda3 ROM. More...
 
struct  yaze_bitmap
 Primitive of a Bitmap. More...
 
struct  yaze_command_registry
 Command registry. More...
 
struct  yaze_event_dispatcher
 Event dispatcher. More...
 

Typedefs

typedef struct z3_rom z3_rom
 
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
 Extension editor context.
 
typedef struct yaze_bitmap yaze_bitmap
 Primitive of a Bitmap.
 

Functions

int yaze_init (yaze_editor_context *)
 Initialize the Yaze library.
 
void yaze_cleanup (yaze_editor_context *)
 Clean up the Yaze library.
 
yaze_project yaze_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.
 
yaze_bitmap yaze_load_bitmap (const char *filename)
 Load a bitmap 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.
 
z3_overworldyaze_load_overworld (const z3_rom *rom)
 Load the overworld from a Zelda3 ROM.
 
void yaze_check_version (const char *version)
 Check the version of the Yaze library.
 

Typedef Documentation

◆ z3_rom

typedef struct z3_rom z3_rom

Definition at line 16 of file yaze.h.

◆ yaze_project

typedef struct yaze_project yaze_project

Definition at line 18 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 20 of file yaze.h.

◆ yaze_editor_context

typedef struct yaze_editor_context yaze_editor_context

Extension editor context.

◆ yaze_bitmap

typedef struct yaze_bitmap yaze_bitmap

Primitive of a Bitmap.

Function Documentation

◆ yaze_init()

int yaze_init ( yaze_editor_context * yaze_ctx)

Initialize the Yaze library.

Definition at line 18 of file yaze.cc.

References yaze_editor_context::project, yaze_editor_context::rom, yaze_project::rom_filename, and yaze_load_rom().

Here is the call graph for this function:

◆ yaze_cleanup()

void yaze_cleanup ( yaze_editor_context * yaze_ctx)

Clean up the Yaze library.

Definition at line 31 of file yaze.cc.

References yaze_editor_context::rom, and yaze_unload_rom().

Here is the call graph for this function:

◆ yaze_load_project()

yaze_project yaze_load_project ( const char * filename)

Definition at line 37 of file yaze.cc.

References yaze_project::filepath.

◆ yaze_load_rom()

z3_rom * yaze_load_rom ( const char * filename)

Load a Zelda3 ROM from a file.

Definition at line 43 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(), and yaze_init().

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 59 of file yaze.cc.

References z3_rom::impl.

Referenced by BOOST_PYTHON_MODULE(), and yaze_cleanup().

◆ yaze_load_bitmap()

yaze_bitmap yaze_load_bitmap ( const char * filename)

Load a bitmap from a file.

Definition at line 69 of file yaze.cc.

References yaze_bitmap::bpp, yaze_bitmap::data, yaze_bitmap::height, and yaze_bitmap::width.

◆ 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 78 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)

Load the overworld from a Zelda3 ROM.

Definition at line 103 of file yaze.cc.

References z3_overworld_map::id, z3_overworld::impl, z3_rom::impl, and z3_overworld::maps.

◆ yaze_check_version()

void yaze_check_version ( const char * version)

Check the version of the Yaze library.

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: