feat: aetherbind, first source generator

This commit is contained in:
redglow
2026-07-18 17:05:03 +02:00
parent 4ce99d9486
commit aae9c083d9
69 changed files with 210 additions and 156 deletions
+23
View File
@@ -0,0 +1,23 @@
using Godot;
using GodotHostTest.AetherBind;
using GodotHostTest.Helpers;
using GodotHostTest.Interfaces;
using Microsoft.Extensions.Logging;
using OwofGames.AetherBind;
using R3;
namespace GodotHostTest.Game.Projectile;
[Injected]
public partial class Projectile : Node2D
{
[Inject] private ILogger<Projectile> _logger = null!;
[Inject] private IValueGetter<ITargetSpawner> _targetSpawner = null!;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
_targetSpawner.Value.TargetSpawned
.Subscribe(_ => _logger.LogInformation("Projectile got informed of target spawning")).AddTo(this);
}
}