It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
31
Interactions/Building/BuildingSpot/Buildable.gd
Normal file
31
Interactions/Building/BuildingSpot/Buildable.gd
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
extends Interaction
|
||||
|
||||
func _ready():
|
||||
add_action("Plan", plan, plan_check)
|
||||
add_action("Build", build, build_check)
|
||||
add_action("Arson", arson, arson_check)
|
||||
add_action("Demolish", demolish, demolish_check)
|
||||
|
||||
func build():
|
||||
get_parent().build()
|
||||
|
||||
func build_check():
|
||||
return get_parent().build_check()
|
||||
|
||||
func plan():
|
||||
get_parent().plan()
|
||||
|
||||
func plan_check():
|
||||
return get_parent().plan_check()
|
||||
|
||||
func demolish():
|
||||
get_parent().demolish()
|
||||
|
||||
func demolish_check():
|
||||
return get_parent().demolish_check()
|
||||
|
||||
func arson():
|
||||
get_parent().arson()
|
||||
|
||||
func arson_check():
|
||||
return get_parent().arson_check()
|
||||
7
Interactions/Building/BuildingSpot/Buildable.tscn
Normal file
7
Interactions/Building/BuildingSpot/Buildable.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cf3aqkjfurrjs"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c5ded8kcouyci" path="res://Interactions/Interactable/interaction.tscn" id="1_ui8jv"]
|
||||
[ext_resource type="Script" path="res://Interactions/Building/BuildingSpot/Buildable.gd" id="2_5uan7"]
|
||||
|
||||
[node name="Buildable" instance=ExtResource("1_ui8jv")]
|
||||
script = ExtResource("2_5uan7")
|
||||
24
Interactions/Building/BuildingSpot/SandcastleBuildable.gd
Normal file
24
Interactions/Building/BuildingSpot/SandcastleBuildable.gd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
extends Interaction
|
||||
|
||||
func _ready():
|
||||
add_action("Plan", plan, plan_check)
|
||||
add_action("Build", build, build_check)
|
||||
add_action("Demolish", demolish, demolish_check)
|
||||
|
||||
func build():
|
||||
get_parent().build()
|
||||
|
||||
func build_check():
|
||||
return get_parent().build_check()
|
||||
|
||||
func plan():
|
||||
get_parent().plan()
|
||||
|
||||
func plan_check():
|
||||
return get_parent().plan_check()
|
||||
|
||||
func demolish():
|
||||
get_parent().demolish()
|
||||
|
||||
func demolish_check():
|
||||
return get_parent().demolish_check()
|
||||
Loading…
Add table
Add a link
Reference in a new issue