diff options
Diffstat (limited to 'client/scripts/tiles/window.gd')
-rw-r--r-- | client/scripts/tiles/window.gd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/scripts/tiles/window.gd b/client/scripts/tiles/window.gd new file mode 100644 index 00000000..953f97db --- /dev/null +++ b/client/scripts/tiles/window.gd @@ -0,0 +1,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()) |