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

Method AddRange

src/game_variables.cpp:269–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void Game_Variables::AddRange(int first_id, int last_id, Var_t value) {
270 PrepareRange(first_id, last_id, "Invalid write var[{},{}] += {}!", value);
271 WriteRange(first_id, last_id, [value](){ return value; }, VarAdd);
272}
273
274void Game_Variables::SubRange(int first_id, int last_id, Var_t value) {
275 PrepareRange(first_id, last_id, "Invalid write var[{},{}] -= {}!", value);

Callers 3

variables.cppFile · 0.80
BM_VariableAddRangeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected