2011-03-06 10:54:20 +01:00
; This file is part of OpenTTD.
; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
; OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
; See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
;
2021-05-29 11:08:58 +02:00
; Settings for the in-game custom currency.
2011-03-03 22:04:17 +01:00
[pre-amble]
2021-07-05 17:46:38 +02:00
static const SettingVariant _currency_settings_table[] = {
2011-03-03 22:04:17 +01:00
[post-amble]
};
[templates]
2021-06-03 20:55:03 +02:00
SDT_VAR = SDT_VAR (CurrencySpec, $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
SDT_SSTR = SDT_SSTR(CurrencySpec, $var, $type, $flags, $def, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
2011-03-03 22:04:17 +01:00
2021-03-01 13:12:17 +01:00
[validation]
2021-05-29 09:12:11 +02:00
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for CurrencySpec.$var exceeds storage size");
2021-03-01 13:12:17 +01:00
2011-03-05 11:12:03 +01:00
[defaults]
2021-06-03 20:55:03 +02:00
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2011-03-05 11:12:03 +01:00
interval = 0
str = STR_NULL
2012-05-12 12:09:00 +02:00
strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
2011-03-06 16:51:44 +01:00
strval = STR_NULL
2021-05-24 09:44:20 +02:00
pre_cb = nullptr
post_cb = nullptr
2019-04-11 13:24:02 +02:00
load = nullptr
2019-01-26 02:48:40 +01:00
from = SL_MIN_VERSION
2011-03-05 11:20:49 +01:00
to = SL_MAX_VERSION
2012-11-08 11:04:00 +01:00
cat = SC_ADVANCED
2020-12-14 00:14:37 +01:00
extra = 0
2021-02-16 00:09:52 +01:00
startup = false
2011-03-05 11:12:03 +01:00
2011-03-03 22:04:17 +01:00
[SDT_VAR]
var = rate
type = SLE_UINT16
def = 1
min = 0
max = UINT16_MAX
2021-04-28 16:46:24 +02:00
[SDT_SSTR]
2011-03-03 22:04:17 +01:00
var = separator
2021-04-28 16:46:24 +02:00
type = SLE_STRQ
2011-03-03 22:04:17 +01:00
def = "".""
2012-11-08 11:04:00 +01:00
cat = SC_BASIC
2011-03-03 22:04:17 +01:00
[SDT_VAR]
var = to_euro
type = SLE_INT32
def = 0
2023-08-16 15:43:31 +02:00
min = CalendarTime::MIN_YEAR
max = CalendarTime::MAX_YEAR
2011-03-03 22:04:17 +01:00
2021-04-28 16:46:24 +02:00
[SDT_SSTR]
2011-03-03 22:04:17 +01:00
var = prefix
2021-04-28 16:46:24 +02:00
type = SLE_STRQ
2019-04-11 13:24:02 +02:00
def = nullptr
2011-03-03 22:04:17 +01:00
2021-04-28 16:46:24 +02:00
[SDT_SSTR]
2011-03-03 22:04:17 +01:00
var = suffix
2021-04-28 16:46:24 +02:00
type = SLE_STRQ
2011-03-03 22:04:17 +01:00
def = "" credits""