mirror of https://github.com/OpenRCT2/OpenRCT2.git
38 lines
1.9 KiB
C++
38 lines
1.9 KiB
C++
/*****************************************************************************
|
|
* Copyright (c) 2014-2024 OpenRCT2 developers
|
|
*
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
|
*
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
#include "rct2/Limits.h"
|
|
|
|
namespace OpenRCT2::Limits
|
|
{
|
|
constexpr uint16_t MaxRidesInPark = 1000;
|
|
constexpr uint16_t MaxStationsPerRide = 255;
|
|
constexpr uint8_t CustomerHistorySize = RCT12::Limits::CustomerHistorySize;
|
|
constexpr uint16_t MaxGolfHoles = RCT12::Limits::MaxGolfHoles;
|
|
constexpr uint16_t MaxHelices = RCT12::Limits::MaxHelices;
|
|
constexpr uint16_t MaxInversions = RCT12::Limits::MaxInversions;
|
|
constexpr uint16_t MaxTrainsPerRide = 255;
|
|
constexpr uint16_t MaxCarsPerTrain = 255;
|
|
constexpr const uint16_t MaxVehicleColours = MaxTrainsPerRide; // this should really be MaxTrainsPerRide * MaxCarsPerTrain
|
|
// MaxVehicleColours should be set to MaxTrainsPerRide or MaxCarsPerTrain, whichever is higher.
|
|
// Sadly, using std::max() will cause compilation failures when using MaxVehicleColours as an array size,
|
|
// hence the usage of static asserts.
|
|
static_assert(MaxVehicleColours >= MaxTrainsPerRide);
|
|
static_assert(MaxVehicleColours >= MaxCarsPerTrain);
|
|
constexpr uint8_t MaxCircuitsPerRide = 20;
|
|
constexpr uint8_t MaxAwards = RCT12::Limits::MaxAwards;
|
|
constexpr uint8_t NumColourSchemes = RCT12::Limits::NumColourSchemes;
|
|
constexpr uint8_t DowntimeHistorySize = RCT2::Limits::DowntimeHistorySize;
|
|
constexpr uint16_t MaxPeepSpawns = 256;
|
|
constexpr uint16_t MaxParkEntrances = 256;
|
|
constexpr uint8_t MaxWaitingTime = RCT12::Limits::MaxWaitingTime;
|
|
constexpr uint8_t CheatsMaxOperatingLimit = 255;
|
|
} // namespace OpenRCT2::Limits
|