blob: 953f97db422fd9ff4b50b0208b6952533bc233ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class_name WallWindow
extends WallTile
func setup(rename: String, neighbors: Array):
super.setup(rename, neighbors)
match kind:
WallKind.STRAIGHT:
base.add_child(load("res://models/prefabs/map/window.tscn").instantiate())
WallKind.OUTER_CORNER:
push_warning("There is no corner window!")
base.add_child(load("res://models/prefabs/map/window.tscn").instantiate())
|