OpenTTD Source 20260712-master-gcf48f866eb
depot_type.h File Reference

Header files for depots (not hangars). More...

#include "core/pool_type.hpp"

Go to the source code of this file.

Typedefs

using DepotID = PoolID<uint16_t, struct DepotIDTag, 64000, 0xFFFF>
 Type for the unique identifier of depots.

Variables

static const uint MAX_LENGTH_DEPOT_NAME_CHARS = 32
 The maximum length of a depot name in characters including '\0'.
static constexpr uint8_t MINIMAL_DEPOT_BRIDGE_HEIGHT = 3
 Minimal height for a bridge above any depot tile.

Detailed Description

Header files for depots (not hangars).

Definition in file depot_type.h.

Typedef Documentation

◆ DepotID

using DepotID = PoolID<uint16_t, struct DepotIDTag, 64000, 0xFFFF>

Type for the unique identifier of depots.

Definition at line 15 of file depot_type.h.

Variable Documentation

◆ MAX_LENGTH_DEPOT_NAME_CHARS

const uint MAX_LENGTH_DEPOT_NAME_CHARS = 32
static

The maximum length of a depot name in characters including '\0'.

Definition at line 18 of file depot_type.h.

Referenced by CmdRenameDepot(), and DepotWindow::OnClick().

◆ MINIMAL_DEPOT_BRIDGE_HEIGHT

uint8_t MINIMAL_DEPOT_BRIDGE_HEIGHT = 3
staticconstexpr

Minimal height for a bridge above any depot tile.

Definition at line 21 of file depot_type.h.

Referenced by CheckBuildAbove_Rail(), CheckBuildAbove_Road(), CheckBuildAbove_Water(), CmdBuildRoadDepot(), CmdBuildShipDepot(), and CmdBuildTrainDepot().