jesselawson / jesselawson/campfirejs-prototype
Reference/Query trigger status
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Like switches, we should be able to reference a trigger to determine its state.
For example:
```
story.registerTrigger({
label: 'created trigger feature',
trigger: () => { /* something */ },
then: () => { /* something else */ }
```
We should be able to query the status of that trigger, like this:
```
story.triggerStatus('created trigger feature')
// Returns false
```
or
```
story.fired('created trigger feature')
// Returns false
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the implementation of story.registerTrigger and the existing switch state handling. Determine how trigger state should be represented and whether triggerStatus or fired is the intended API, then verify that querying the example trigger reports its state consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100