complete project reorganization
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 55s
Create tag and build when new code gets to main / Test (push) Successful in 7m7s
Create tag and build when new code gets to main / Export (push) Successful in 9m56s

This commit is contained in:
2026-02-04 11:20:00 +01:00
parent b6e8d0b590
commit cd519e528f
824 changed files with 397 additions and 16380 deletions

View File

@@ -1,54 +0,0 @@
using System.Collections.Generic;
using Godot;
namespace Movementtests.systems;
public partial class TweenQueueSystem : Node3D
{
public record TweenInputs(Vector3 Location, float Duration);
private Queue<TweenInputs> _tweenInputs = new Queue<TweenInputs>();
private Node3D _tweenObject;
private bool _isTweening = false;
private Callable _tweenEndedCallback;
public void Init(Node3D tweenObject)
{
_tweenObject = tweenObject;
_tweenEndedCallback = new Callable(this, MethodName.EndTween);
}
public void EndTween()
{
_isTweening = false;
}
public Tween TweenToLocation(TweenInputs inputs)
{
var (location, duration) = inputs;
var tween = GetTree().CreateTween();
tween.SetParallel(true);
tween.TweenProperty(_tweenObject, "global_position", location, duration);
tween.TweenCallback(_tweenEndedCallback);
_isTweening = true;
return tween;
}
public void QueueTween(TweenInputs inputs)
{
_tweenInputs.Enqueue(inputs);
}
public void QueueTween(Vector3 location, float duration)
{
QueueTween(new TweenInputs(location, duration));
}
public void ProcessTweens()
{
if (_tweenInputs.Count > 0 && !_isTweening)
TweenToLocation(_tweenInputs.Dequeue());
}
}

View File

@@ -1 +0,0 @@
uid://crm4u4r56hvg7

View File

@@ -1,6 +0,0 @@
[gd_scene format=3 uid="uid://dbe5f0p6lvqtr"]
[ext_resource type="Script" uid="uid://crm4u4r56hvg7" path="res://systems/tween_queue/TweenQueueSystem.cs" id="1_iqosd"]
[node name="TweenQueueSystem" type="Node3D" unique_id=1341402383]
script = ExtResource("1_iqosd")