init method

void init(
  1. int value
)

Initializes the RankGenerator with the total value.

This function should be called before any rank updates.

Implementation

void init(int value) {
  _current = 0;
  _granted = false;
  _total = value;
}