yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::sprite_behavior Namespace Reference

Functions

std::string NormalizeContractSource (const std::string &text)
 
absl::StatusOr< std::array< std::string, 3 > > ReadReviewedProfile (const std::string &root)
 
absl::Status VerifyProfile (const std::string &root, const project::SpriteBehavior &behavior)
 
absl::Status Validate (const project::SpriteBehavior &behavior, const zsprite::ZSprite &sprite)
 
absl::Status RemoveAction (project::SpriteBehavior &behavior, int index)
 
absl::StatusOr< std::string > GenerateCandidate (const project::SpriteBehavior &behavior, const zsprite::ZSprite &sprite, const std::string &prefix)
 

Variables

constexpr std::array< const char *, 3 > kSourcePaths
 
constexpr std::array< const char *, 3 > kReviewedCodeSha256
 

Function Documentation

◆ NormalizeContractSource()

std::string yaze::editor::sprite_behavior::NormalizeContractSource ( const std::string & text)
inline

Definition at line 23 of file sprite_behavior.h.

Referenced by ReadReviewedProfile().

◆ ReadReviewedProfile()

absl::StatusOr< std::array< std::string, 3 > > yaze::editor::sprite_behavior::ReadReviewedProfile ( const std::string & root)
inline

◆ VerifyProfile()

absl::Status yaze::editor::sprite_behavior::VerifyProfile ( const std::string & root,
const project::SpriteBehavior & behavior )
inline

◆ Validate()

◆ RemoveAction()

absl::Status yaze::editor::sprite_behavior::RemoveAction ( project::SpriteBehavior & behavior,
int index )
inline

◆ GenerateCandidate()

absl::StatusOr< std::string > yaze::editor::sprite_behavior::GenerateCandidate ( const project::SpriteBehavior & behavior,
const zsprite::ZSprite & sprite,
const std::string & prefix )
inline

Variable Documentation

◆ kSourcePaths

constexpr std::array<const char*, 3> yaze::editor::sprite_behavior::kSourcePaths
inlineconstexpr
Initial value:
= {
"Core/sprite_macros.asm", "Core/sprite_functions.asm", "Core/symbols.asm"}

Definition at line 15 of file sprite_behavior.h.

Referenced by ReadReviewedProfile().

◆ kReviewedCodeSha256

constexpr std::array<const char*, 3> yaze::editor::sprite_behavior::kReviewedCodeSha256
inlineconstexpr
Initial value:
= {
"07a4aca7fab35159c10abe0804f5de6f2455c32ed1acc7f00abe69b4ad09acd8",
"d727ced1802805fbebada4d5bcffca4f366adcb23c14ef9bb1985afa48b93f39",
"5914fb1de28a4612cfac189d20d22586a04526f5f6d0d3a2307489413dee22ab"}

Definition at line 18 of file sprite_behavior.h.

Referenced by ReadReviewedProfile().