How paulo-aragao/services-and-bootstrapping-system works
This Unity package provides dependency-ordered startup for registered bootables, service registration and lookup, and built-in configuration and save services. The principal workflow starts before the first scene: GameBoot loads BootRegistry, BootRunner orders its bootables using DependsOn metadata, and each bootable is started. Services register with ServiceLocator and initialize through Service.Init(). The graph follows the documented and excerpted calls; it does not infer additional runtime integrations.
Main entry points: Service.cs Service · BootRunner.cs BootRunner · GameBoot.cs GameBoot · SaveService.cs SaveService
Components 11
Startup orchestration
- GameBoot
Runtime/BootSystem/GameBoot.cs - BootRegistry
Runtime/BootSystem/BootRegistry.cs - BootRunner
Runtime/BootSystem/BootRunner.cs - IBootable
Runtime/BootSystem/IBootable.cs - DependsOnAttribute
Runtime/Services/DependsOnAttribute.cs
Service lifecycle
- Service
Runtime/Services/Service.cs - ServiceLocator
Runtime/Services/ServiceLocator.cs
Built-in services
- ConfigService
Runtime/Services/Config/ConfigService.cs - SaveService
Runtime/Services/Config/SaveService.cs
Other components
- Unity runtime
- Game code
Connections 14
- Unity runtime → GameBoot: triggers before scene
Runtime/BootSystem/GameBoot.cs - GameBoot → BootRegistry: loads
Runtime/BootSystem/GameBoot.cs - GameBoot → BootRunner: runs
Runtime/BootSystem/GameBoot.cs - BootRegistry → BootRunner: supplies bootables
Runtime/BootSystem/GameBoot.cs - BootRunner → DependsOnAttribute: reads dependencies
Runtime/BootSystem/BootRunner.cs - BootRunner → IBootable: orders and boots
Runtime/BootSystem/BootRunner.cs - Service → IBootable: implements
Runtime/Services/Service.cs - Service → ServiceLocator: registers
Runtime/Services/Service.cs - Service → ConfigService: dispatches Init
Runtime/Services/Service.cs - Service → SaveService: dispatches Init
Runtime/Services/Service.cs - ConfigService → Service: extends
Runtime/Services/Config/ConfigService.cs - SaveService → Service: extends
Runtime/Services/Config/SaveService.cs - SaveService → DependsOnAttribute: declares dependency
Runtime/Services/Config/SaveService.cs - Game code → ServiceLocator: requests service
README.md