MCPcopy Create free account
hub / github.com/crawl/crawl / marshallExcludes

Function marshallExcludes

crawl-ref/source/exclude.cc:694–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694void marshallExcludes(writer& outf, const exclude_set& excludes)
695{
696 marshallShort(outf, excludes.size());
697 if (excludes.size())
698 {
699 for (const auto &entry : excludes)
700 {
701 const travel_exclude &ex = entry.second;
702 marshallCoord(outf, ex.pos);
703 marshallShort(outf, ex.radius);
704 marshallBoolean(outf, ex.autoex);
705 marshallString(outf, ex.desc);
706 // XXX: marshall travel_exclude::vault?
707 }
708 }
709}
710
711void unmarshallExcludes(reader& inf, int minorVersion, exclude_set &excludes)
712{

Callers 1

saveMethod · 0.85

Calls 5

marshallShortFunction · 0.85
marshallCoordFunction · 0.85
marshallBooleanFunction · 0.85
marshallStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected