blob: c32cb070c71970a2861ae76a86df5b44149bb88b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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())
|