aboutsummaryrefslogtreecommitdiff
path: root/client/scripts/map/counter_base.gd
blob: 19c7f0451ccf4519b74c6cf51dbb12f3a157b354 (plain)
1
2
3
4
5
6
7
8
9
10
11
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())