updating project files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dlxg641x8w8tn"]
|
||||
[gd_scene format=3 uid="uid://dlxg641x8w8tn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpw6fi5fyccic" path="res://godot_state_charts_examples/csharp/CSharpExample.cs" id="1_fkf0f"]
|
||||
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="2_b878w"]
|
||||
@@ -12,10 +12,10 @@
|
||||
script = ExtResource("6_ecpvf")
|
||||
expression = "poison_count <= 0"
|
||||
|
||||
[node name="csharp_example" type="Node2D"]
|
||||
[node name="csharp_example" type="Node2D" unique_id=409791195]
|
||||
script = ExtResource("1_fkf0f")
|
||||
|
||||
[node name="InfoLabel" type="Label" parent="."]
|
||||
[node name="InfoLabel" type="Label" parent="." unique_id=2003807326]
|
||||
offset_left = 19.0
|
||||
offset_top = 33.0
|
||||
offset_right = 293.0
|
||||
@@ -24,62 +24,62 @@ text = "This is a demo on how to use Godot State Charts with C#.
|
||||
We have a turn-based game here. You can click \"Drink Poison\" to ingest 3 poison. \"Drink Cure\" will clear all poison. Wait will just wait a round. At the end of each round poison is subtracted from health or health regenerates if no poison is in the system. Print Debug prints out whether we are currently poisoned."
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="FeelLabel" type="Label" parent="."]
|
||||
[node name="FeelLabel" type="Label" parent="." unique_id=1878634681]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 23.0
|
||||
offset_top = 367.0
|
||||
offset_right = 63.0
|
||||
offset_bottom = 390.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=881290035]
|
||||
offset_left = 90.0
|
||||
offset_top = 407.0
|
||||
offset_right = 540.0
|
||||
offset_bottom = 447.0
|
||||
|
||||
[node name="DrinkPoisonButton" type="Button" parent="HBoxContainer"]
|
||||
[node name="DrinkPoisonButton" type="Button" parent="HBoxContainer" unique_id=852220665]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Drink Poison"
|
||||
|
||||
[node name="DrinkCureButton" type="Button" parent="HBoxContainer"]
|
||||
[node name="DrinkCureButton" type="Button" parent="HBoxContainer" unique_id=1647805715]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Drink Cure"
|
||||
|
||||
[node name="WaitButton" type="Button" parent="HBoxContainer"]
|
||||
[node name="WaitButton" type="Button" parent="HBoxContainer" unique_id=1802231501]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Wait"
|
||||
|
||||
[node name="PrintDebugButton" type="Button" parent="HBoxContainer"]
|
||||
[node name="PrintDebugButton" type="Button" parent="HBoxContainer" unique_id=1546010390]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Print Debug"
|
||||
|
||||
[node name="StateChart" type="Node" parent="."]
|
||||
[node name="StateChart" type="Node" parent="." unique_id=944205397]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_b878w")
|
||||
track_in_editor = true
|
||||
|
||||
[node name="Root" type="Node" parent="StateChart"]
|
||||
[node name="Root" type="Node" parent="StateChart" unique_id=913870189]
|
||||
script = ExtResource("3_ck7cw")
|
||||
initial_state = NodePath("Normal")
|
||||
|
||||
[node name="Normal" type="Node" parent="StateChart/Root"]
|
||||
[node name="Normal" type="Node" parent="StateChart/Root" unique_id=102410483]
|
||||
script = ExtResource("4_ovkn7")
|
||||
|
||||
[node name="To Poisoned" type="Node" parent="StateChart/Root/Normal"]
|
||||
[node name="To Poisoned" type="Node" parent="StateChart/Root/Normal" unique_id=703793178]
|
||||
script = ExtResource("5_um7g8")
|
||||
to = NodePath("../../Poisoned")
|
||||
event = &"poisoned"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Poisoned" type="Node" parent="StateChart/Root"]
|
||||
[node name="Poisoned" type="Node" parent="StateChart/Root" unique_id=775790669]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("4_ovkn7")
|
||||
|
||||
[node name="To Normal On Wear Off" type="Node" parent="StateChart/Root/Poisoned"]
|
||||
[node name="To Normal On Wear Off" type="Node" parent="StateChart/Root/Poisoned" unique_id=1564960593]
|
||||
editor_description = "This transition checks at the beginning of the round i the poison count is 0 and if so transitions back to normal state."
|
||||
script = ExtResource("5_um7g8")
|
||||
to = NodePath("../../Normal")
|
||||
@@ -87,14 +87,14 @@ event = &"next_round"
|
||||
guard = SubResource("Resource_j6fet")
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="To Normal On Cure" type="Node" parent="StateChart/Root/Poisoned"]
|
||||
[node name="To Normal On Cure" type="Node" parent="StateChart/Root/Poisoned" unique_id=604808615]
|
||||
editor_description = "This transition immediately goes back to normal state when the cure is taken."
|
||||
script = ExtResource("5_um7g8")
|
||||
to = NodePath("../../Normal")
|
||||
event = &"cured"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="StateChartDebugger" parent="." instance=ExtResource("7_yrwaw")]
|
||||
[node name="StateChartDebugger" parent="." unique_id=559569062 instance=ExtResource("7_yrwaw")]
|
||||
offset_left = 309.0
|
||||
offset_top = 4.0
|
||||
offset_right = 636.0
|
||||
|
||||
Reference in New Issue
Block a user