MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getPalette

Method getPalette

src/Resource/ResourcePack.cpp:235–239  ·  view source on GitHub ↗

* Returns a specific palette from the resource set. * @param name Name of the palette. * @return Pointer to the palette. */

Source from the content-addressed store, hash-verified

233 * @return Pointer to the palette.
234 */
235Palette *ResourcePack::getPalette(const std::string &name) const
236{
237 std::map<std::string, Palette*>::const_iterator i = _palettes.find(name);
238 if (_palettes.end() != i) return i->second; else return 0;
239}
240
241/**
242 * Changes the palette of all the graphics in the resource set.

Callers 1

XcomResourcePackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected