updating project files
This commit is contained in:
@@ -55,5 +55,3 @@ func _on_drill_has_no_coal_state_stepped():
|
||||
func _on_next_round_button_pressed():
|
||||
# when the next round button is pressed we handle all currently active states
|
||||
_state_chart.step()
|
||||
|
||||
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://iewxecs0uwss"]
|
||||
[gd_scene format=3 uid="uid://iewxecs0uwss"]
|
||||
|
||||
[ext_resource type="Script" path="res://godot_state_charts_examples/stepping/stepping.gd" id="1_8d8ax"]
|
||||
[ext_resource type="Script" uid="uid://dctc1yeiwh0wx" path="res://godot_state_charts_examples/stepping/stepping.gd" id="1_8d8ax"]
|
||||
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="1_u4aev"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/state_chart.gd" id="2_7ehwm"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/parallel_state.gd" id="4_ohpt6"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/compound_state.gd" id="5_xbwwa"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/atomic_state.gd" id="6_n6kwq"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/transition.gd" id="7_78ppn"]
|
||||
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="2_7ehwm"]
|
||||
[ext_resource type="Script" uid="uid://c1vp0ojjvaby1" path="res://addons/godot_state_charts/parallel_state.gd" id="4_ohpt6"]
|
||||
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="5_xbwwa"]
|
||||
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="6_n6kwq"]
|
||||
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="7_78ppn"]
|
||||
|
||||
[node name="SteppingExample" type="Node2D"]
|
||||
[node name="SteppingExample" type="Node2D" unique_id=768576582]
|
||||
script = ExtResource("1_8d8ax")
|
||||
|
||||
[node name="StateChartDebugger" parent="." instance=ExtResource("1_u4aev")]
|
||||
[node name="StateChartDebugger" parent="." unique_id=1716622941 instance=ExtResource("1_u4aev")]
|
||||
offset_left = 353.0
|
||||
offset_top = 5.0
|
||||
offset_right = 635.0
|
||||
offset_bottom = 326.0
|
||||
initial_node_to_watch = NodePath("../StateChart")
|
||||
|
||||
[node name="NextRoundButton" type="Button" parent="."]
|
||||
[node name="NextRoundButton" type="Button" parent="." unique_id=387423607]
|
||||
offset_left = 500.0
|
||||
offset_top = 421.0
|
||||
offset_right = 611.0
|
||||
offset_bottom = 454.0
|
||||
text = "Next Round"
|
||||
|
||||
[node name="AddCoalToDrillButton" type="Button" parent="."]
|
||||
[node name="AddCoalToDrillButton" type="Button" parent="." unique_id=756509678]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 371.0
|
||||
offset_top = 422.0
|
||||
@@ -33,62 +33,64 @@ offset_right = 482.0
|
||||
offset_bottom = 455.0
|
||||
text = "Add Coal"
|
||||
|
||||
[node name="StateChart" type="Node" parent="."]
|
||||
[node name="StateChart" type="Node" parent="." unique_id=1880010090]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_7ehwm")
|
||||
track_in_editor = true
|
||||
|
||||
[node name="Root" type="Node" parent="StateChart"]
|
||||
[node name="Root" type="Node" parent="StateChart" unique_id=1862724482]
|
||||
script = ExtResource("4_ohpt6")
|
||||
|
||||
[node name="Drill" type="Node" parent="StateChart/Root"]
|
||||
[node name="Drill" type="Node" parent="StateChart/Root" unique_id=428332976]
|
||||
script = ExtResource("5_xbwwa")
|
||||
initial_state = NodePath("Drill Has No Coal")
|
||||
|
||||
[node name="Drill Has Coal" type="Node" parent="StateChart/Root/Drill"]
|
||||
[node name="Drill Has Coal" type="Node" parent="StateChart/Root/Drill" unique_id=1319519654]
|
||||
editor_description = "When in this state, the drill has coal and will produce two more coal per round."
|
||||
script = ExtResource("6_n6kwq")
|
||||
|
||||
[node name="On Coal Depleted" type="Node" parent="StateChart/Root/Drill/Drill Has Coal"]
|
||||
[node name="On Coal Depleted" type="Node" parent="StateChart/Root/Drill/Drill Has Coal" unique_id=1451112502]
|
||||
script = ExtResource("7_78ppn")
|
||||
to = NodePath("../../Drill Has No Coal")
|
||||
event = &"coal_depleted"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Drill Has No Coal" type="Node" parent="StateChart/Root/Drill"]
|
||||
[node name="Drill Has No Coal" type="Node" parent="StateChart/Root/Drill" unique_id=1616848461]
|
||||
editor_description = "When in this state, the drill will do nothing."
|
||||
script = ExtResource("6_n6kwq")
|
||||
|
||||
[node name="On Coal Available" type="Node" parent="StateChart/Root/Drill/Drill Has No Coal"]
|
||||
[node name="On Coal Available" type="Node" parent="StateChart/Root/Drill/Drill Has No Coal" unique_id=604312784]
|
||||
script = ExtResource("7_78ppn")
|
||||
to = NodePath("../../Drill Has Coal")
|
||||
event = &"coal_available"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
[node name="GridContainer" type="GridContainer" parent="." unique_id=1245828139]
|
||||
offset_left = 366.0
|
||||
offset_top = 333.0
|
||||
offset_right = 518.0
|
||||
offset_bottom = 389.0
|
||||
columns = 2
|
||||
|
||||
[node name="Label" type="Label" parent="GridContainer"]
|
||||
[node name="Label" type="Label" parent="GridContainer" unique_id=469540420]
|
||||
layout_mode = 2
|
||||
text = "Coal mined: "
|
||||
|
||||
[node name="CoalAvailableLabel" type="Label" parent="GridContainer"]
|
||||
[node name="CoalAvailableLabel" type="Label" parent="GridContainer" unique_id=118859305]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="Label2" type="Label" parent="GridContainer"]
|
||||
[node name="Label2" type="Label" parent="GridContainer" unique_id=750042110]
|
||||
layout_mode = 2
|
||||
text = "Coal in drill:"
|
||||
|
||||
[node name="CoalInDrillLabel" type="Label" parent="GridContainer"]
|
||||
[node name="CoalInDrillLabel" type="Label" parent="GridContainer" unique_id=1230109760]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="Info" type="Label" parent="."]
|
||||
[node name="Info" type="Label" parent="." unique_id=24109398]
|
||||
offset_left = 13.0
|
||||
offset_top = 22.0
|
||||
offset_right = 322.0
|
||||
|
||||
Reference in New Issue
Block a user