fixed camera and sword animation issue and upgraded to Godot 4.6
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 22s
Create tag and build when new code gets to main / Test (push) Failing after 2m10s
Create tag and build when new code gets to main / Export (push) Has been skipped

This commit is contained in:
2026-01-27 17:47:19 +01:00
parent 056a68b0ad
commit caeae26a09
335 changed files with 3035 additions and 2221 deletions

View File

@@ -1,7 +1,9 @@
@tool
extends Node
@onready var _server :GdUnitTcpServer = $TcpServer
var _client_id: int
@onready var _server: GdUnitTcpServer = $TcpServer
@warning_ignore("return_value_discarded")
@@ -15,10 +17,10 @@ func _ready() -> void:
_server.client_connected.connect(_on_client_connected)
_server.client_disconnected.connect(_on_client_disconnected)
_server.rpc_data.connect(_receive_rpc_data)
GdUnitCommandHandler.instance().gdunit_runner_stop.connect(_on_gdunit_runner_stop)
func _on_client_connected(client_id: int) -> void:
_client_id = client_id
GdUnitSignals.instance().gdunit_client_connected.emit(client_id)
@@ -26,11 +28,6 @@ func _on_client_disconnected(client_id: int) -> void:
GdUnitSignals.instance().gdunit_client_disconnected.emit(client_id)
func _on_gdunit_runner_stop(client_id: int) -> void:
if _server:
_server.disconnect_client(client_id)
func _receive_rpc_data(p_rpc: RPC) -> void:
if p_rpc is RPCMessage:
var rpc_message: RPCMessage = p_rpc
@@ -38,5 +35,7 @@ func _receive_rpc_data(p_rpc: RPC) -> void:
return
if p_rpc is RPCGdUnitEvent:
var rpc_event: RPCGdUnitEvent = p_rpc
GdUnitSignals.instance().gdunit_event.emit(rpc_event.event())
return
var event := rpc_event.event()
GdUnitSignals.instance().gdunit_event.emit(event)
if event.type() == GdUnitEvent.SESSION_CLOSE and _server != null:
_server.disconnect_client(_client_id)

View File

@@ -1 +1 @@
uid://2pr0fvtay8vf
uid://dt20agyqj617n

View File

@@ -1 +1 @@
uid://eobp360ofaq5
uid://djw8wvkil63eu

View File

@@ -1 +1 @@
uid://t6wuy7w6nlve
uid://b0voxmhgyo4gb

View File

@@ -1,3 +1,4 @@
@tool
class_name GdUnitTcpClient
extends GdUnitTcpNode
@@ -100,7 +101,8 @@ func process_rpc() -> void:
if _stream.get_available_bytes() > 0:
var rpc_data := rpc_receive()
if rpc_data is RPCClientDisconnect:
stop()
console("RPCClientDisconnect")
GdUnitSignals.instance().gdunit_test_session_terminate.emit.call_deferred()
func send(data: RPC) -> void:

View File

@@ -1 +1 @@
uid://c5dwxfihc8jwp
uid://de48l0bn1yhs6

View File

@@ -1 +1 @@
uid://bcywbsdfcc88k
uid://6tecqgjvq2kj

View File

@@ -51,6 +51,12 @@ class TcpConnection extends GdUnitTcpNode:
)
func disconnect_from_server() -> void:
if _stream == null or _stream.get_status() != StreamPeerTCP.STATUS_CONNECTED:
return
rpc_send(_stream, RPCClientDisconnect.new().with_id(_id))
func console(_value: Variant) -> void:
#print_debug("TCP Server: ", value)
pass
@@ -58,6 +64,11 @@ class TcpConnection extends GdUnitTcpNode:
func _init(server_name := "GdUnit4 TCP Server") -> void:
_server_name = server_name
GdUnitSignals.instance().gdunit_test_session_terminate.connect(func() -> void:
for connection in get_children():
if connection is TcpConnection:
connection.disconnect_from_server()
)
func _ready() -> void:

View File

@@ -1 +1 @@
uid://dkxh0mktjia50
uid://bid0ceqhbhprs

View File

@@ -1 +1 @@
uid://cop588f5ov5ul
uid://c5ult2fvtt55i

View File

@@ -1 +1 @@
uid://c0nqfpo3y6lkk
uid://nkl61d8mpqam

View File

@@ -1 +1 @@
uid://cos6yegplfqxr
uid://bnxfld8vqv6po

View File

@@ -1 +1 @@
uid://b1ocmn5c833kt
uid://lsvi6l38qjfj

View File

@@ -1 +1 @@
uid://0mpkrrxtbgao
uid://rxa3f4pgpsji