MCPcopy Create free account
hub / github.com/EasyRPG/Player / EnumerateRange

Method EnumerateRange

src/game_variables.cpp:496–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void Game_Variables::EnumerateRange(int first_id, int last_id, Var_t value) {
497 PrepareRange(first_id, last_id, "Invalid write enumerate(var[{},{}])!");
498 Var_t out_value = value;
499 WriteRange(first_id, last_id, [&out_value](){ return out_value++; }, VarSet);
500}
501
502void Game_Variables::SortRange(int first_id, int last_id, bool asc) {
503 PrepareRange(first_id, last_id, "Invalid write sort(var[{},{}])!");

Callers 2

variables.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected