Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 41 additions & 7 deletions mvp-effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,49 @@

# Command Effects
- [x] `CommandQueue<C>`

- [x] `CommandInsertResource`
- [x] `CommandRemoveResource`

- [ ] `CommandSpawnAnd`

## Nice to have
- [ ] `CommandSpawnBatch`
- [ ] `CommandInsertBatch`

- [ ] `CommandRunSystem`
- [ ] `CommandRunSystemWith`
- [ ] `CommandRegisterSystemAnd`
- [ ] `CommandUnregisterSystemAnd`

- [ ] `CommandTrigger`
- [ ] `CommandTriggerTargets`
- [ ] `CommandAddObserverAnd`

- [ ] `CommandRunSchedule`

# Entity command effects:
- [ ] `CommandSpawnEmptyAnd`
- [ ] `CommandEntityInsert`
- [ ] `CommandEntityRemove`
- [ ] `CommandEntityDespawnRecursive`
- [ ] `EntityCommandQueue<C>`

- [ ] `EntityCommandInsert`
- [ ] `EntityCommandRemove`
- [ ] `EntityCommandDespawn`

## Nice to have
- [ ] `EntityCommandRetain`
- [ ] `EntityCommandClear`

- [ ] `EntityCommandObserve`
- [ ] `EntityCommandTrigger`

- [ ] `EntityCommandSetParentInPlace`
- [ ] `EntityCommandRemoveParentInPlace`

- [ ] `EntityCommandInsertRecursive`
- [ ] `EntityCommandRemoveRecursive`

*For MVP, `CommandEffect<C>` enables hierarchy commands*
*Most relationship/target commands have feature parity with plain insertions
and removals on the relationship entity, so they don't have effects for mvp*

# Tuple effects
- [x] `(E0, E1, ... En)`
Expand All @@ -39,7 +72,8 @@
- [ ] `IterEffect`
- [ ] `Vec<E>`
- [ ] `Option<E>`
- [ ] `Either<E0, E1>`

# Result Effects
- [ ] `OrLog(Result<E, Error>, LogLevel)`
- [ ] `Result<E, Error> = OrLog(..., LogLevel::Error)`
- [ ] `ResultWithHandler(Result<E, Er>, Fn(BevyError, ErrorContext))`
- [ ] `Result<E, Er>` *uses global error handler, or panics if unavailable, just like vanilla bevy*