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

Function MakeAttributeSet

tests/attribute.cpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10static lcf::DBBitArray MakeAttributeSet(std::initializer_list<bool> v = {}) {
11 auto a = lcf::DBBitArray(lcf::Data::attributes.size());
12 int idx = 0;
13 for (auto b: v) {
14 a[idx++] = b;
15 }
16 return a;
17}
18
19TEST_SUITE_BEGIN("Attribute");
20

Callers 3

attribute.cppFile · 0.85
testSingleFunction · 0.85
testMaxMultiFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected