♻️ Rebuild with DI
This commit is contained in:
		
							
								
								
									
										14
									
								
								Scripts/AutoLoad/DIInitializer.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Scripts/AutoLoad/DIInitializer.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| using Godot; | ||||
| using AceFieldNewHorizon.Scripts.System; | ||||
|  | ||||
| namespace AceFieldNewHorizon.Scripts.AutoLoad; | ||||
|  | ||||
| public partial class DIInitializer : Node | ||||
| { | ||||
|     public override void _Ready() | ||||
|     { | ||||
|         // Initialize the Simple Injector container as early as possible | ||||
|         DependencyInjection.Initialize(); | ||||
|         GD.Print("[DIInitializer] Dependency Injection container initialized via AutoLoad."); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										1
									
								
								Scripts/AutoLoad/DIInitializer.cs.uid
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Scripts/AutoLoad/DIInitializer.cs.uid
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| uid://cr2a8w6ur4uei | ||||
		Reference in New Issue
	
	Block a user