| Level |
Exp |
... |
| map<int32, Level> |
int32 |
|
| 1 |
0 |
|
| 2 |
20 |
|
| 3 |
50 |
|
In this case, we need to calculate player's level from exp. One possible approach to do this is to change the sheet structure and move Exp to the first column, and create an OrderedMap on it. But this makes the sheet intuitive. I propose adding a new sheet option OrderedIndex, it's just like the original Index, but the auto-created map is ordered. OrderedIndex can only be created on one column, not multiple, and requires the column's type constraints.Ordered (interger, float or string).
In this case, we need to calculate player's level from exp. One possible approach to do this is to change the sheet structure and move
Expto the first column, and create anOrderedMapon it. But this makes the sheet intuitive. I propose adding a new sheet optionOrderedIndex, it's just like the originalIndex, but the auto-created map is ordered.OrderedIndexcan only be created on one column, not multiple, and requires the column's typeconstraints.Ordered(interger, float or string).