aboutsummaryrefslogtreecommitdiff
path: root/client/scripts/tiles/counter_base.gd
blob: bf51513e89b40f508bfc7f56e2976f000360c1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class_name CounterBase
extends Counter

func _init(rename: String, neighbors: Array):
	super(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())