gd,refacto: added state chart addon and namespace cleanup
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bddhmoj1g5lv3"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://berg2d0lm33m0" path="res://godot_state_charts_examples/performance_test/ten_state_charts.tscn" id="1_djj1b"]
|
||||
|
||||
[node name="hundred_state_charts" type="Node2D"]
|
||||
|
||||
[node name="ten_state_charts" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts2" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts3" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts4" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts5" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts6" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts7" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts8" parent="." instance=ExtResource("1_djj1b")]
|
||||
|
||||
[node name="ten_state_charts9" parent="." instance=ExtResource("1_djj1b")]
|
@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://b8rr57grye1kw"]
|
||||
|
||||
[ext_resource type="Script" path="res://godot_state_charts_examples/performance_test/state_chart_receiver.gd" id="1_44fbg"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/state_chart.gd" id="1_x4how"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/compound_state.gd" id="2_2eb2m"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/atomic_state.gd" id="3_qtc2o"]
|
||||
[ext_resource type="Script" path="res://addons/godot_state_charts/transition.gd" id="4_ue85n"]
|
||||
|
||||
[node name="state_chart" type="Node2D"]
|
||||
script = ExtResource("1_44fbg")
|
||||
|
||||
[node name="StateChart" type="Node" parent="."]
|
||||
script = ExtResource("1_x4how")
|
||||
|
||||
[node name="Root" type="Node" parent="StateChart"]
|
||||
script = ExtResource("2_2eb2m")
|
||||
initial_state = NodePath("A")
|
||||
|
||||
[node name="A" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("3_qtc2o")
|
||||
|
||||
[node name="To B" type="Node" parent="StateChart/Root/A"]
|
||||
script = ExtResource("4_ue85n")
|
||||
to = NodePath("../../B")
|
||||
delay_seconds = 10.0
|
||||
|
||||
[node name="B" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("3_qtc2o")
|
||||
|
||||
[node name="To A" type="Node" parent="StateChart/Root/B"]
|
||||
script = ExtResource("4_ue85n")
|
||||
to = NodePath("../../A")
|
||||
delay_seconds = 20.0
|
||||
|
||||
[connection signal="state_processing" from="StateChart/Root/A" to="." method="_on_a_state_processing"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/B" to="." method="_on_b_state_physics_processing"]
|
@ -0,0 +1,12 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
|
||||
func _on_a_state_processing(_delta):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_b_state_physics_processing(_delta):
|
||||
pass
|
@ -0,0 +1 @@
|
||||
uid://bv6xx4hxfew5j
|
@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://berg2d0lm33m0"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b8rr57grye1kw" path="res://godot_state_charts_examples/performance_test/state_chart.tscn" id="1_sc64n"]
|
||||
|
||||
[node name="ten_state_charts" type="Node2D"]
|
||||
|
||||
[node name="state_chart" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart2" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart3" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart4" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart5" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart6" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart7" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart8" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart9" parent="." instance=ExtResource("1_sc64n")]
|
||||
|
||||
[node name="state_chart10" parent="." instance=ExtResource("1_sc64n")]
|
@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://byh6mcqhp6ky2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bddhmoj1g5lv3" path="res://godot_state_charts_examples/performance_test/hundred_state_charts.tscn" id="1_1oume"]
|
||||
|
||||
[node name="thousand_state_charts" type="Node2D"]
|
||||
|
||||
[node name="hundred_state_charts" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts2" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts3" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts4" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts5" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts6" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts7" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts8" parent="." instance=ExtResource("1_1oume")]
|
||||
|
||||
[node name="hundred_state_charts9" parent="." instance=ExtResource("1_1oume")]
|
Reference in New Issue
Block a user