yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::core::StoryPredicate Struct Reference

A predicate for determining event completion from SRAM state. More...

#include <story_event_graph.h>

Public Attributes

std::string reg
 
std::string op
 
int value = 0
 
int bit = -1
 
uint32_t mask = 0
 

Detailed Description

A predicate for determining event completion from SRAM state.

This is intentionally minimal and "data-driven": it allows the story graph to evolve without hardcoding each event ID in C++.

Supported op values:

  • "==" / "!=" / ">=" / "<=" : compares register value to value
  • "bit_set" / "bit_clear" : tests bit in register value
  • "mask_any" / "mask_all" : tests mask against register value

Definition at line 47 of file story_event_graph.h.

Member Data Documentation

◆ reg

std::string yaze::core::StoryPredicate::reg

◆ op

std::string yaze::core::StoryPredicate::op

◆ value

int yaze::core::StoryPredicate::value = 0

◆ bit

int yaze::core::StoryPredicate::bit = -1

◆ mask

uint32_t yaze::core::StoryPredicate::mask = 0

The documentation for this struct was generated from the following file: