diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-21 00:47:57 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:25:29 +0200 |
commit | b430895ea49ebeb0359a2d36164832303aaf757d (patch) | |
tree | 651c4e1e0a9e22207607eba0c15da6c02374ead6 /client/scripts/tiles/counter_base.gd | |
parent | 4f19a2cd91b099dc2e0d6c673d853befc7044340 (diff) | |
download | hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar.bz2 hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar.zst |
add door
Diffstat (limited to 'client/scripts/tiles/counter_base.gd')
-rw-r--r-- | client/scripts/tiles/counter_base.gd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/scripts/tiles/counter_base.gd b/client/scripts/tiles/counter_base.gd new file mode 100644 index 00000000..19c7f045 --- /dev/null +++ b/client/scripts/tiles/counter_base.gd @@ -0,0 +1,12 @@ +class_name CounterBase +extends Counter + +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()) |