Feature #532 » 0035-Generate-enum-impr_flag_id-by-generate_enums.py.patch
| common/fc_types.h | ||
|---|---|---|
| #define SPECENUM_COUNT  IG_COUNT | ||
| #include "specenum_gen.h" | ||
| /* Used in the network protocol. */ | ||
| #define SPECENUM_NAME impr_flag_id | ||
| /* Improvement should be visible to others without spying */ | ||
| #define SPECENUM_VALUE0 IF_VISIBLE_BY_OTHERS | ||
| #define SPECENUM_VALUE0NAME "VisibleByOthers" | ||
| /* This small wonder is moved to another city if game.savepalace is on. */ | ||
| #define SPECENUM_VALUE1 IF_SAVE_SMALL_WONDER | ||
| #define SPECENUM_VALUE1NAME "SaveSmallWonder" | ||
| /* When built, gives gold */ | ||
| #define SPECENUM_VALUE2 IF_GOLD | ||
| #define SPECENUM_VALUE2NAME "Gold" | ||
| /* Never destroyed by disasters */ | ||
| #define SPECENUM_VALUE3 IF_DISASTER_PROOF | ||
| #define SPECENUM_VALUE3NAME "DisasterProof" | ||
| /* Never destroyed by a surgical strike */ | ||
| #define SPECENUM_VALUE4 IF_INDESTRUCTIBLE | ||
| #define SPECENUM_VALUE4NAME "Indestructible" | ||
| #define SPECENUM_VALUE5 IF_USER_FLAG_1 | ||
| #define SPECENUM_VALUE6 IF_USER_FLAG_2 | ||
| #define SPECENUM_VALUE7 IF_USER_FLAG_3 | ||
| #define SPECENUM_VALUE8 IF_USER_FLAG_4 | ||
| #define SPECENUM_VALUE9 IF_USER_FLAG_5 | ||
| #define SPECENUM_VALUE10 IF_USER_FLAG_6 | ||
| #define SPECENUM_VALUE11 IF_USER_FLAG_7 | ||
| #define SPECENUM_VALUE12 IF_USER_FLAG_8 | ||
| #define SPECENUM_COUNT IF_COUNT | ||
| #define SPECENUM_NAMEOVERRIDE | ||
| #define SPECENUM_BITVECTOR bv_impr_flags | ||
| #include "specenum_gen.h" | ||
| #include "fc_types_enums_gen.h" | ||
| #define IF_LAST_USER_FLAG IF_USER_FLAG_8 | ||
| #define MAX_NUM_USER_BUILDING_FLAGS (IF_LAST_USER_FLAG - IF_USER_FLAG_1 + 1) | ||
| gen_headers/enums/Makefile.am | ||
|---|---|---|
| ENUMS_GEN = \ | ||
| 		actions_enums_gen.h	\ | ||
| 		effects_enums_gen.h	\ | ||
| 		fc_types_enums_gen.h	\ | ||
| 		manual_enums_gen.h	\ | ||
| 		terrain_enums_gen.h | ||
| EXTRA_DIST = \ | ||
| 		actions_enums.def	\ | ||
| 		effects_enums.def	\ | ||
| 		fc_types_enums.def	\ | ||
| 		manual_enums.def	\ | ||
| 		terrain_enums.def	\ | ||
| 		$(ENUMS_GEN) | ||
| gen_headers/enums/fc_types_enums.def | ||
|---|---|---|
| # Specenum definitions for common/fc_types.h | ||
| # See gen_headers/generate_enums.py for syntax | ||
| /* Used in the network protocol. */ | ||
| enum impr_flag_id | ||
|   prefix IF_ | ||
|   name-override | ||
|   bitvector bv_impr_flags | ||
|   count | ||
| values | ||
|   VISIBLE_BY_OTHERS  "VisibleByOthers" | ||
|   SAVE_SMALL_WONDER  "SaveSmallWonder" | ||
|   /* When built, gives gold */ | ||
|   GOLD               "Gold" | ||
|   /* Never destroyed by disasters */ | ||
|   DISASTER_PROOF     "DisasterProof" | ||
|   /* Never destroyed by a surgical strike */ | ||
|   INDESTRUCTIBLE     "Indestructible" | ||
|   USER_FLAG_1 | ||
|   USER_FLAG_2 | ||
|   USER_FLAG_3 | ||
|   USER_FLAG_4 | ||
|   USER_FLAG_5 | ||
|   USER_FLAG_6 | ||
|   USER_FLAG_7 | ||
|   USER_FLAG_8 | ||
| end | ||
| meson.build | ||
|---|---|---|
|   'common': { | ||
|     'actions_enums': ['actions_enums.def', 'actions_enums_gen.h'], | ||
|     'effects_enums': ['effects_enums.def', 'effects_enums_gen.h'], | ||
|     'fc_types_enums': ['fc_types_enums.def', 'fc_types_enums_gen.h'], | ||
|     'terrain_enums': ['terrain_enums.def', 'terrain_enums_gen.h'], | ||
|   }, | ||
|   'manual': { | ||
- « Previous
- 1
- 2
- Next »