feat: some application of source code generator
This commit is contained in:
@@ -0,0 +1 @@
|
||||
uid://c4pr1lc7ikb4h
|
||||
+6
-1
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using Godot;
|
||||
using GodotHostTest.AetherBind;
|
||||
using GodotHostTest.Interfaces;
|
||||
using OwofGames.AetherBind;
|
||||
using OwofGames.GodotLume;
|
||||
|
||||
namespace GodotHostTest.Game.Root;
|
||||
|
||||
@@ -17,6 +19,9 @@ public partial class Root : Node2D
|
||||
{
|
||||
var levelData = _levelDataProvider.GetLevelData(_currentLevel.LevelNumber);
|
||||
AddChild(_sceneInstantiator.Instantiate(_levelScene,
|
||||
(IValueSetter<ILevel> levelSetter) => { levelSetter.Set(levelData); }));
|
||||
OnInstantiate(levelValueSetter => levelValueSetter.Set(levelData))));
|
||||
}
|
||||
|
||||
[ServiceMethod]
|
||||
private partial Action<IProvider> OnInstantiate(Action<IValueSetter<ILevel>> a);
|
||||
}
|
||||
Reference in New Issue
Block a user