| 692 | } |
| 693 | |
| 694 | void 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 | |
| 711 | void unmarshallExcludes(reader& inf, int minorVersion, exclude_set &excludes) |
| 712 | { |
no test coverage detected