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,15 +1,15 @@
class_name GdUnitThreadContext
extends RefCounted
var _thread :Thread
var _thread_name :String
var _thread_id :int
var _signal_collector :GdUnitSignalCollector
var _execution_context :GdUnitExecutionContext
var _thread: Thread
var _thread_name: String
var _thread_id: int
var _signal_collector: GdUnitSignalCollector
var _execution_context: GdUnitExecutionContext
var _asserts := []
func _init(thread :Thread = null) -> void:
func _init(thread: Thread = null) -> void:
if thread != null:
_thread = thread
_thread_name = thread.get_meta("name")
@@ -29,11 +29,15 @@ func dispose() -> void:
_thread = null
func terminate() -> void:
_execution_context.terminate()
func clear_assert() -> void:
_asserts.clear()
func set_assert(value :GdUnitAssert) -> void:
func set_assert(value: GdUnitAssert) -> void:
if value != null:
_asserts.append(value)
@@ -42,7 +46,7 @@ func get_assert() -> GdUnitAssert:
return null if _asserts.is_empty() else _asserts[-1]
func set_execution_context(context :GdUnitExecutionContext) -> void:
func set_execution_context(context: GdUnitExecutionContext) -> void:
_execution_context = context

View File

@@ -1 +1 @@
uid://bbnovcu4fci0e
uid://ds5gw1am0fd25

View File

@@ -3,7 +3,7 @@ class_name GdUnitThreadManager
extends Object
## { <thread_id> = <GdUnitThreadContext> }
var _thread_context_by_id := {}
var _thread_context_by_id: Dictionary[int, GdUnitThreadContext] = {}
## holds the current thread id
var _current_thread_id :int = -1
@@ -25,6 +25,11 @@ static func run(name :String, cb :Callable) -> Variant:
return await instance()._run(name, cb)
static func interrupt() -> void:
for thread_context: GdUnitThreadContext in instance()._thread_context_by_id.values():
thread_context.terminate()
## Returns the current valid thread context
static func get_current_context() -> GdUnitThreadContext:
return instance()._get_current_context()

View File

@@ -1 +1 @@
uid://frnnd5anspey
uid://cvamq1aqfvift