# map_sl.cpp File Reference

Code handling saving and loading of map. More...

`#include "../stdafx.h"`
`#include "../map_func.h"`
`#include "../core/alloc_type.hpp"`
`#include "../core/bitmath_func.hpp"`
`#include "saveload.h"`

Go to the source code of this file.

## Enumerations
enum | { MAP_SL_BUF_SIZE = 4096 }
## Functions
static void | Save_MAPS ()
static void | Load_MAPS ()
static void | Load_MAPT ()
static void | Save_MAPT ()
static void | Load_MAP1 ()
static void | Save_MAP1 ()
static void | Load_MAP2 ()
static void | Save_MAP2 ()
static void | Load_MAP3 ()
static void | Save_MAP3 ()
static void | Load_MAP4 ()
static void | Save_MAP4 ()
static void | Load_MAP5 ()
static void | Save_MAP5 ()
static void | Load_MAP6 ()
static void | Save_MAP6 ()
static void | Load_MAP7 ()
static void | Save_MAP7 ()
## Variables
static uint32 | _map_dim_x
static uint32 | _map_dim_y
static const SaveLoadGlobVarList | _map_dimensions []
const ChunkHandler | _map_chunk_handlers []

## Detailed Description

Code handling saving and loading of map.

Definition in file map_sl.cpp.

## Variable Documentation

const ChunkHandler _map_chunk_handlers[]

Initial value:

     {
      { 'MAPS', Save_MAPS, Load_MAPS, NULL, CH_RIFF },
      { 'MAPT', Save_MAPT, Load_MAPT, NULL, CH_RIFF },
      { 'MAPO', Save_MAP1, Load_MAP1, NULL, CH_RIFF },
      { 'MAP2', Save_MAP2, Load_MAP2, NULL, CH_RIFF },
      { 'M3LO', Save_MAP3, Load_MAP3, NULL, CH_RIFF },
      { 'M3HI', Save_MAP4, Load_MAP4, NULL, CH_RIFF },
      { 'MAP5', Save_MAP5, Load_MAP5, NULL, CH_RIFF },
      { 'MAPE', Save_MAP6, Load_MAP6, NULL, CH_RIFF },
      { 'MAP7', Save_MAP7, Load_MAP7, NULL, CH_RIFF | CH_LAST },
    }

const SaveLoadGlobVarList _map_dimensions[]`[static]`

Initial value:

     {
      SLEG_CONDVAR(_map_dim_x, SLE_UINT32, 6, SL_MAX_VERSION),
      SLEG_CONDVAR(_map_dim_y, SLE_UINT32, 6, SL_MAX_VERSION),

    }

Definition at line 22 of file map_sl.cpp.