OpenTTD Source 20250312-master-gcdcc6b491d
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'.
 

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().