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

Function make

tests/switches.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6constexpr int max_switches = 5;
7
8static Game_Switches make() {
9 lcf::Data::switches.resize(max_switches);
10 Game_Switches s;
11 s.SetLowerLimit(max_switches);
12 s.SetWarning(0);
13 return s;
14}
15
16TEST_CASE("Set") {
17 constexpr int n = max_switches * 2;

Callers 1

switches.cppFile · 0.70

Calls 2

SetLowerLimitMethod · 0.45
SetWarningMethod · 0.45

Tested by

no test coverage detected