aboutsummaryrefslogtreecommitdiff
path: root/client/scripts/map/counter_base.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-20 14:13:28 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:24:14 +0200
commit80039e0e7eb142d51f882a39981fd415ea3f5c54 (patch)
tree62d75807ff55374bdb5431dd5db82399d241c4c7 /client/scripts/map/counter_base.gd
parent5bf50cd276a568f55fb1d5aedef96e614bed015b (diff)
downloadhurrycurry-80039e0e7eb142d51f882a39981fd415ea3f5c54.tar
hurrycurry-80039e0e7eb142d51f882a39981fd415ea3f5c54.tar.bz2
hurrycurry-80039e0e7eb142d51f882a39981fd415ea3f5c54.tar.zst
map generation
Diffstat (limited to 'client/scripts/map/counter_base.gd')
-rw-r--r--client/scripts/map/counter_base.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/scripts/map/counter_base.gd b/client/scripts/map/counter_base.gd
new file mode 100644
index 00000000..32f5cc06
--- /dev/null
+++ b/client/scripts/map/counter_base.gd
@@ -0,0 +1,13 @@
+extends Counter
+class_name CounterBase
+
+func setup(rename: String, neighbors: Array):
+ super.setup(rename, neighbors)
+ match kind:
+ CounterKind.OUTER_CORNER:
+ base.add_child(load("res://models/prefabs/map/kitchencounter_outercorner.tscn").instantiate())
+ CounterKind.STRAIGHT:
+ base.add_child(load("res://models/prefabs/map/kitchencounter_straight_A.tscn").instantiate())
+ CounterKind.STRAIGHT_BACKSPLASH:
+ base.add_child(load("res://models/prefabs/map/kitchencounter_straight_A_backsplash.tscn").instantiate())
+ turn_facing(facing)