blob: 7df5e9db143a5dc601d70179b6e911591ceab5ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class_name WallWindow
extends WallTile
static func interact_target() -> Vector3:
return Vector3(0, 0.625, 0)
func _init(rename: String, neighbors: Array):
super(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())
|