aboutsummaryrefslogtreecommitdiff
path: root/src/terrain/privinc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 17:10:35 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-28 04:12:45 +0100
commitdb3ee0d63620bd42f27a6b359f0996df927481dd (patch)
tree3ed8d42e1c0414c5d7fd8d4e2ca96bb19a59b3c6 /src/terrain/privinc
parentcd2b58b5619bf33deb99b0765f2d69969c61ed74 (diff)
downloadjancity-db3ee0d63620bd42f27a6b359f0996df927481dd.tar.gz
terrain: Split tile/object rendering
Diffstat (limited to 'src/terrain/privinc')
-rw-r--r--src/terrain/privinc/terrain_tiles.h153
1 files changed, 153 insertions, 0 deletions
diff --git a/src/terrain/privinc/terrain_tiles.h b/src/terrain/privinc/terrain_tiles.h
new file mode 100644
index 0000000..962bafe
--- /dev/null
+++ b/src/terrain/privinc/terrain_tiles.h
@@ -0,0 +1,153 @@
+#ifndef TERRAIN_TILES_H
+#define TERRAIN_TILES_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+enum
+{
+ /* SIDEWALK */
+ SIDEWALK_1_NW,
+ SIDEWALK_1_N,
+ SIDEWALK_1_NE,
+ SIDEWALK_2_NW,
+ SIDEWALK_2_NE,
+ SIDEWALK_3_NW,
+ SIDEWALK_3_N,
+ SIDEWALK_3_NE,
+ SIDEWALK_4_N,
+
+ SIDEWALK_1_W,
+ SIDEWALK_1_C,
+ SIDEWALK_1_E,
+ SIDEWALK_2_SW,
+ SIDEWALK_2_SE,
+ SIDEWALK_3_SW,
+ SIDEWALK_3_S,
+ SIDEWALK_3_SE,
+ SIDEWALK_4_C,
+
+ SIDEWALK_1_SW,
+ SIDEWALK_1_S,
+ SIDEWALK_1_SE,
+ SIDEWALK_5_W,
+ SIDEWALK_5_C,
+ SIDEWALK_5_E,
+ SIDEWALK_6,
+ SIDEWALK_4_S,
+
+ SIDEWALK_START = SIDEWALK_1_NW,
+ SIDEWALK_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