rbxts-flamework / core

Flamework is an extensible game framework. It requires typescript and offers many useful features.
MIT License
112 stars 8 forks source link

Generic singletons #63

Closed Fireboltofdeath closed 1 year ago

Fireboltofdeath commented 1 year ago

Currently, Flamework only registers singletons that are: a service, a controller or were resolved as a singleton at some point (e.g as a service/controller dependency) but not when on its own.

Add flamework:singleton reflection metadata instead of hardcoding services/controllers.

An extra flamework:loadOrder is necessary to allow other singletons to specify loadOrder like services/controllers.