MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / getEntry

Method getEntry

src/Abyss/DataTypes/Palette.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34const std::string &Palette::getName() const { return _name; }
35
36PaletteEntry Palette::getEntry(const size_t index) const {
37 if (index >= _entries.size())
38 throw std::out_of_range("Palette::getEntry: index out of range");
39
40 return _entries.at(index);
41}
42
43const std::vector<PaletteEntry> &Palette::getEntries() const { return _entries; }
44

Callers 1

DT1Method · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected