This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/simulation/elements/meson.build
Tamás Bálint Misius c188837fec
Delete E146
This was an unused and by default disabled element that did nothing even when enabled. 146 used to be the element ID allocated to some legacy GOL variant that I cannot be bothered to look into, and the element itself existed in this vegetative state for years to ensure some sort of compatibility that I found no trace of or reason for.

Also make the element list friendlier, both for humans and for git. The list held consecutive integers starting from 0, so it was ripe for factoring. Element ID's are skipped if the name that they would normally belong to is not a string but rather a disabler(), the closest thing to a null/nil/none value in meson.
2023-08-31 15:05:15 +02:00

207 lines
2.0 KiB
Meson

simulation_elem_names = [
'NONE',
'DUST',
'WATR',
'OIL',
'FIRE',
'STNE',
'LAVA',
'GUNP',
'NITR',
'CLNE',
'GAS',
'PLEX',
'GOO',
'ICEI',
'METL',
'SPRK',
'SNOW',
'WOOD',
'NEUT',
'PLUT',
'PLNT',
'ACID',
'VOID',
'WTRV',
'CNCT',
'DSTW',
'SALT',
'SLTW',
'DMND',
'BMTL',
'BRMT',
'PHOT',
'URAN',
'WAX',
'MWAX',
'PSCN',
'NSCN',
'LNTG',
'INSL',
'BHOL',
'WHOL',
'RBDM',
'LRBD',
'NTCT',
'SAND',
'GLAS',
'PTCT',
'BGLA',
'THDR',
'PLSM',
'ETRD',
'NICE',
'NBLE',
'BTRY',
'LCRY',
'STKM',
'SWCH',
'SMKE',
'DESL',
'COAL',
'LO2',
'O2',
'INWR',
'YEST',
'DYST',
'THRM',
'GLOW',
'BRCK',
'CFLM',
'FIRW',
'FUSE',
'FSEP',
'AMTR',
'BCOL',
'PCLN',
'HSWC',
'IRON',
'MORT',
'LIFE',
'DLAY',
'CO2',
'DRIC',
'CBNW',
'STOR',
'PVOD',
'CONV',
'CAUS',
'LIGH',
'TESC',
'DEST',
'SPNG',
'RIME',
'FOG',
'BCLN',
'LOVE',
'DEUT',
'WARP',
'PUMP',
'FWRK',
'PIPE',
'FRZZ',
'FRZW',
'GRAV',
'BIZR',
'BIZRG',
'BIZRS',
'INST',
'ISOZ',
'ISZS',
'PRTI',
'PRTO',
'PSTE',
'PSTS',
'ANAR',
'VINE',
'INVIS',
'E116',
'SPAWN2',
'SPAWN',
'SHLD1',
'SHLD2',
'SHLD3',
'SHLD4',
'LOLZ',
'WIFI',
'FILT',
'ARAY',
'BRAY',
'STKM2',
'BOMB',
'C5',
'SING',
'QRTZ',
'PQRT',
'EMP',
'BREC',
'ELEC',
'ACEL',
'DCEL',
'BANG',
'IGNT',
'BOYL',
'GEL',
'TRON',
'TTAN',
'EXOT',
disabler(),
'EMBR',
'H2',
'SOAP',
'NBHL',
'NWHL',
'MERC',
'PBCN',
'GPMP',
'CLST',
'WIRE',
'GBMB',
'FIGH',
'FRAY',
'RPEL',
'PPIP',
'DTEC',
'DMG',
'TSNS',
'VIBR',
'BVBR',
'CRAY',
'PSTN',
'FRME',
'GOLD',
'TUNG',
'PSNS',
'PROT',
'VIRS',
'VRSS',
'VRSG',
'GRVT',
'DRAY',
'CRMC',
'HEAC',
'SAWD',
'POLO',
'RFRG',
'RFGL',
'LSNS',
'LDTC',
'SLCN',
'PTNM',
'VSNS',
'ROCK',
'LITH',
]
simulation_elem_src = []
simulation_elem_ids = []
elem_id = 0
foreach elem_name : simulation_elem_names
if not is_disabler(elem_name)
simulation_elem_src += elem_name + '.cpp'
simulation_elem_ids += [ [ elem_name, elem_id ] ]
endif
elem_id = elem_id + 1
endforeach
simulation_files += files(simulation_elem_src)