yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
sprite_asset.h
Go to the documentation of this file.
1
#ifndef YAZE_CORE_SPRITE_ASSET_H_
2
#define YAZE_CORE_SPRITE_ASSET_H_
3
4
#include <array>
5
#include <cstdint>
6
#include <string>
7
8
#include "
core/sprite_behavior.h
"
9
10
namespace
yaze::project
{
11
struct
SpritePaletteBinding
{
12
std::string
group
=
"auto"
;
13
int
index
= 0;
14
};
15
16
// Stored in the project, leaving the upstream ZSM binary format unchanged.
17
// zsm_path identifies the saved asset; catalog_key is optional provenance.
18
struct
SpriteAssetBinding
{
19
std::string
zsm_path
;
20
std::string
catalog_key
;
21
std::string
draw_adapter
=
"literal_v1"
;
22
std::string
source_path
;
23
std::string
source_label
;
24
std::string
source_sha256
;
25
std::array<uint8_t, 8>
sheets
= {0, 10, 6, 7, 0, 0, 0, 0};
26
std::array<SpritePaletteBinding, 8>
palette_rows
;
27
SpriteBehavior
behavior
;
28
};
29
30
}
// namespace yaze::project
31
#endif
sprite_behavior.h
yaze::project
Definition
feature_flag_editor_panel.h:10
yaze::project::SpriteAssetBinding
Definition
sprite_asset.h:18
yaze::project::SpriteAssetBinding::source_label
std::string source_label
Definition
sprite_asset.h:23
yaze::project::SpriteAssetBinding::behavior
SpriteBehavior behavior
Definition
sprite_asset.h:27
yaze::project::SpriteAssetBinding::sheets
std::array< uint8_t, 8 > sheets
Definition
sprite_asset.h:25
yaze::project::SpriteAssetBinding::source_path
std::string source_path
Definition
sprite_asset.h:22
yaze::project::SpriteAssetBinding::palette_rows
std::array< SpritePaletteBinding, 8 > palette_rows
Definition
sprite_asset.h:26
yaze::project::SpriteAssetBinding::source_sha256
std::string source_sha256
Definition
sprite_asset.h:24
yaze::project::SpriteAssetBinding::draw_adapter
std::string draw_adapter
Definition
sprite_asset.h:21
yaze::project::SpriteAssetBinding::catalog_key
std::string catalog_key
Definition
sprite_asset.h:20
yaze::project::SpriteAssetBinding::zsm_path
std::string zsm_path
Definition
sprite_asset.h:19
yaze::project::SpriteBehavior
Definition
sprite_behavior.h:24
yaze::project::SpritePaletteBinding
Definition
sprite_asset.h:11
yaze::project::SpritePaletteBinding::index
int index
Definition
sprite_asset.h:13
yaze::project::SpritePaletteBinding::group
std::string group
Definition
sprite_asset.h:12
src
core
sprite_asset.h
Generated by
1.10.0