Buttrfor Unity
Dependency injection with DOTs integration.
Pure C# DI containers with source generators and Roslyn analyzers for zero runtime reflection for injections. Includes a Double buffer for enabling communications between standard objects and Unity DOTs entities. Wiring resolved and verified at compile time, installed over UPM.
1public sealed class Program {2 public static ApplicationContainer Main(Dictionary<string, string> args) {3 var builder = new ApplicationBuilder();45 services.AddSingleton<ISaveSystem, SteamSaveSystem>();6 services.AddSingleton<PlayerService>();78 return builder.Build();9 }10}1112public sealed class PlayerService {13 public PlayerService(ISaveSystem saveSystem) { /* constructor injection */ }14}1516public partial class PlayerController : MonoBehaviour {17 [Inject] private PlayerService i_PlayerService; // MonoBehaviour Injection18}
