| 690 | |
| 691 | |
| 692 | void SerializeMap(FSerializer& arc) |
| 693 | { |
| 694 | if (arc.BeginObject("engine")) |
| 695 | { |
| 696 | arc("maplocals", Level) |
| 697 | // everything here should move into MapLocals as well later. |
| 698 | .Array("statlist", statList, MAXSTATUS) |
| 699 | .Array("players",PlayerArray, MAXPLAYERS) |
| 700 | ("sectors", sector, sectorbackup) |
| 701 | ("walls", wall, wallbackup) |
| 702 | |
| 703 | ("myconnectindex", myconnectindex) |
| 704 | ("connecthead", connecthead) |
| 705 | .Array("connectpoint2", connectpoint2, countof(connectpoint2)) |
| 706 | ("randomseed", randomseed) |
| 707 | ("numshades", numshades) // is this really needed? |
| 708 | ("visibility", g_visibility) |
| 709 | ("relvisibility", g_relvisibility) |
| 710 | ("numsprites", Numsprites) |
| 711 | ("allportals", allPortals); |
| 712 | |
| 713 | SerializeInterpolations(arc); |
| 714 | arc.EndObject(); |
| 715 | } |
| 716 | |
| 717 | if (arc.isReading()) |
| 718 | { |
| 719 | setWallSectors(); |
| 720 | hw_CreateSections(); |
| 721 | sectionGeometry.SetSize(sections.Size()); |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | //============================================================================= |
| 726 | // |
no test coverage detected