Initial commit for testing/fixing a deprecated godot-colyseus addon

This commit is contained in:
2026-01-10 11:12:02 -05:00
commit 081a5fcf1a
76 changed files with 3456 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
extends RefCounted
var _running = false
var fn: Callable
var argv: Array
# Called when the node enters the scene tree for the first time.
func _init(fn: Callable,argv: Array = []):
self.fn = fn
self.argv = argv
func start():
if not _running:
_running = true
var root: SceneTree = Engine.get_main_loop()
while true:
await root.process_frame
if not _running:
return
fn.callv(argv)
func stop():
_running = false