Replace `Terrain` enum w/ static variables
commit258c3893c35a7a13f82ee151aff99f58bbcff2d0
authorPhilip Pavlick <swashdev@pm.me>
Mon, 9 Mar 2020 22:23:02 +0000 (9 17:23 -0500)
committerPhilip Pavlick <swashdev@pm.me>
Mon, 9 Mar 2020 22:23:02 +0000 (9 17:23 -0500)
tree8c4c21f5b0afe19131984aca685fa23cd0c3c148
parentb203a43a11e5628e91bbff223668113ce40732eb
Replace `Terrain` enum w/ static variables

Due to the previous commit, in which we defined color pairs using static
variables, we now must define standard terrain elements in the same way
because we can not initialize them properly at compile time.

All references to terrain elements in the source code have been replaced
with TERRAIN_* calls.

I'm still not salty about this.
src/main.d
src/mapalgo.d
src/mapgen.d
src/tile.d
src/tsyms.d