Sleitnick / AeroGameFramework

AeroGameFramework is a Roblox game framework that makes development easy and fun. The framework is designed to simplify the communication between modules and seamlessly bridge the gap between the server and client.
https://sleitnick.github.io/AeroGameFramework/
MIT License
215 stars 57 forks source link

Lower default aeroOrder #191

Closed OttoHatt closed 4 years ago

OttoHatt commented 4 years ago

I think that there is a use case for running Init on a module after all other modules have loaded, but before Start is called. An example of this use case is a binder - everything else must be loaded for it to start creating lua objects, but it cannot be run on Start as other modules rely on the objects already existing.

By lowering the order from math.huge to any non-infinite number (I chose 4096) modules can be run after the default ones have been loaded by setting their order to a number above 4096.

Sleitnick commented 4 years ago

Closing as this will be part of v1.7.0. It needs a bit of restructure, so just easier to close this. But this will be implemented. Thanks for the PR!