yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
sprite_behavior.h
Go to the documentation of this file.
1#ifndef YAZE_CORE_SPRITE_BEHAVIOR_H_
2#define YAZE_CORE_SPRITE_BEHAVIOR_H_
3
4#include <array>
5#include <string>
6#include <vector>
7
8namespace yaze::project {
9// Ordered action IDs are runtime SprAction values, never sprite subtypes.
11 std::string name = "Idle";
12 int animation = 0; // Index into the asset's ZSM animation groups.
13 bool block_player = false;
14 int message_id = -1; // -1 disables solicited dialogue.
15 int message_next = -1;
16 bool move = false;
17 int x_speed = 0;
18 int y_speed = 0;
19 bool bounce_tiles = false;
20 int timer_ticks = 0;
21 int timer_next = -1;
22};
23
25 std::string
26 profile; // Empty disables the model; oracle_actions_v1 supported.
27 std::array<std::string, 3> source_sha256; // macros, functions, symbols.
28 std::vector<SpriteBehaviorAction> actions;
29};
30} // namespace yaze::project
31#endif
std::vector< SpriteBehaviorAction > actions
std::array< std::string, 3 > source_sha256