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 |
|
inline |
Definition at line 23 of file sprite_behavior.h.
Referenced by ReadReviewedProfile().
|
inline |
Definition at line 35 of file sprite_behavior.h.
References yaze::core::ComputeSourceArtifactSha256(), kReviewedCodeSha256, kSourcePaths, NormalizeContractSource(), and yaze::zelda3::ReadSpriteSourceFile().
Referenced by yaze::editor::SpriteEditor::BindOracleBehaviorProfile(), and VerifyProfile().
|
inline |
Definition at line 52 of file sprite_behavior.h.
References yaze::project::SpriteBehavior::profile, ReadReviewedProfile(), and yaze::project::SpriteBehavior::source_sha256.
Referenced by yaze::editor::SpriteEditor::ExportCurrentSpriteBehavior().
|
inline |
Definition at line 66 of file sprite_behavior.h.
References yaze::project::SpriteBehavior::actions, yaze::editor::zsprite::ZSprite::animations, yaze::editor::zsprite::ZSprite::editor, yaze::editor::zsprite::SubEditor::Frames, yaze::project::SpriteBehaviorFromJson(), and yaze::project::SpriteBehaviorToJson().
Referenced by yaze::editor::SpriteEditor::ExportCurrentSpriteBehavior(), and GenerateCandidate().
|
inline |
Definition at line 88 of file sprite_behavior.h.
References yaze::project::SpriteBehavior::actions.
Referenced by yaze::editor::SpriteEditor::DrawSpriteBehaviorPanel().
|
inline |
Definition at line 112 of file sprite_behavior.h.
References yaze::project::SpriteBehavior::actions, yaze::editor::zsprite::ZSprite::animations, RETURN_IF_ERROR, and Validate().
Referenced by yaze::editor::SpriteEditor::ExportCurrentSpriteBehavior().
|
inlineconstexpr |
Definition at line 15 of file sprite_behavior.h.
Referenced by ReadReviewedProfile().
|
inlineconstexpr |
Definition at line 18 of file sprite_behavior.h.
Referenced by ReadReviewedProfile().