reset method

void reset()

Makes the read Story to be unread again.

Use this method when player wants to start reading the Story from the beginning. Resets currentPage to point back to the root page. Resets current node count to point to the first node in the Page.

Implementation

void reset() {
  history = [];
  currentPage = root;
  currentPage.currentIndex = 0;
  _logCurrentPassageToHistory();
}