From 12dca09a2735a9f8566f67d6acf731063dcd8f20 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 25 Sep 2021 05:33:49 +0300 Subject: [PATCH 38/38] Turn enum setting_default_level to a specenum See osdn #42910 Signed-off-by: Marko Lindqvist --- common/fc_types.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/common/fc_types.h b/common/fc_types.h index 091ea518cc..afd4dd3171 100644 --- a/common/fc_types.h +++ b/common/fc_types.h @@ -1224,7 +1224,15 @@ enum spaceship_place_type { typedef float adv_want; #define ADV_WANT_PRINTF "%f" -enum setting_default_level { SETDEF_INTERNAL, SETDEF_RULESET, SETDEF_CHANGED }; +/* Used in the network protocol. */ +#define SPECENUM_NAME setting_default_level +#define SPECENUM_VALUE0 SETDEF_INTERNAL +#define SPECENUM_VALUE0NAME "Internal" +#define SPECENUM_VALUE1 SETDEF_RULESET +#define SPECENUM_VALUE1NAME "Ruleset" +#define SPECENUM_VALUE2 SETDEF_CHANGED +#define SPECENUM_VALUE2NAME "Changed" +#include "specenum_gen.h" /* Used in the network protocol. */ #define SPECENUM_NAME capital_type -- 2.33.0