MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / writeToManager

Method writeToManager

src/bzfs/CustomDynamicColor.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129//============================================================================//
130
131void CustomDynamicColor::writeToManager() const {
132 dyncol->setName(name);
133 if ((name.size() > 0) && (DYNCOLORMGR.findColor(name) >= 0)) {
134 std::cout << "WARNING: duplicate dynamic color"
135 << " (" << name << ")" << std::endl;
136 }
137 dyncol->finalize();
138 DYNCOLORMGR.addColor(dyncol);
139 dyncol = NULL;
140 return;
141}
142
143
144//============================================================================//

Callers

nothing calls this directly

Calls 5

findColorMethod · 0.80
addColorMethod · 0.80
setNameMethod · 0.45
sizeMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected