OpenTTD Source 20241224-master-gee860a5c8e
town_sl_compat.h File Reference

Loading of town chunks before table headers were added. More...

#include "../saveload.h"

Go to the source code of this file.

Variables

const SaveLoadCompat _town_supplied_sl_compat []
 Original field order for SlTownSupplied.
 
const SaveLoadCompat _town_received_sl_compat []
 Original field order for SlTownReceived.
 
const SaveLoadCompat _town_acceptance_matrix_sl_compat []
 Original field order for SlTownAcceptanceMatrix.
 
const SaveLoadCompat _town_sl_compat []
 Original field order for town_desc.
 

Detailed Description

Loading of town chunks before table headers were added.

Definition in file town_sl_compat.h.

Variable Documentation

◆ _town_acceptance_matrix_sl_compat

const SaveLoadCompat _town_acceptance_matrix_sl_compat[]
Initial value:
= {
SLC_VAR("area.tile"),
SLC_VAR("area.w"),
SLC_VAR("area.h"),
}
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1247

Original field order for SlTownAcceptanceMatrix.

Definition at line 32 of file town_sl_compat.h.

◆ _town_received_sl_compat

const SaveLoadCompat _town_received_sl_compat[]
Initial value:
= {
SLC_VAR("old_max"),
SLC_VAR("new_max"),
SLC_VAR("old_act"),
SLC_VAR("new_act"),
}

Original field order for SlTownReceived.

Definition at line 24 of file town_sl_compat.h.

◆ _town_sl_compat

const SaveLoadCompat _town_sl_compat[]

Original field order for town_desc.

Definition at line 39 of file town_sl_compat.h.

Referenced by CITYChunkHandler::Load().

◆ _town_supplied_sl_compat

const SaveLoadCompat _town_supplied_sl_compat[]
Initial value:
= {
SLC_VAR("old_max"),
SLC_VAR("new_max"),
SLC_VAR("old_act"),
SLC_VAR("new_act"),
}

Original field order for SlTownSupplied.

Definition at line 16 of file town_sl_compat.h.