1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Create other variants of ToMoney#

This commit is contained in:
Gymnasiast
2021-07-28 10:31:16 +02:00
parent 93515f4414
commit 2b78ee7b26

View File

@@ -148,6 +148,21 @@ static constexpr money64 ToMoney64(money32 value)
return value == MONEY32_UNDEFINED ? MONEY64_UNDEFINED : value;
}
static constexpr money64 ToMoney64(money16 value)
{
return value == MONEY16_UNDEFINED ? MONEY64_UNDEFINED : value;
}
static constexpr money32 ToMoney32(money64 value)
{
return value == MONEY64_UNDEFINED ? MONEY32_UNDEFINED : static_cast<money32>(value);
}
static constexpr money16 ToMoney16(money64 value)
{
return value == MONEY64_UNDEFINED ? MONEY16_UNDEFINED : static_cast<money16>(value);
}
using EMPTY_ARGS_VOID_POINTER = void();
using rct_string_id = uint16_t;