Anki/rslib/src/backend/scheduler
RumovZ e39fb74e82
Enable state-dependent custom scheduling data (#2049)
* Enable state-dependent custom scheduling data

* Next(Card)States -> SchedulingStates

The fact that `current` was included in `next` always bothered me,
and custom data is part of the card state, so that was a bit confusing
too.

* Store custom_data in SchedulingState

* Make custom_data optional when answering

Avoids having to send it 4 extra times to the frontend, and avoids the
legacy answerCard() API clobbering the stored data.

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2022-09-05 16:48:01 +10:00
..
states Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
answering.rs Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
mod.rs Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00