Current
A Knit forked/inspired modular loading project
Current is a lightweight portable and debloated framework to help with your modular coding organization.
If Knit is too complex or bloated for you but you like the way it organizes your code, then this is the right resource for you!
USAGE EXAMPLE:
This is how you setup Current on both client and server
--// SERVER SIDE
local Current = require(ReplicatedStorage.Current.src)
Current.AddServices(Folder)
Current.Start()
--// CLIENT SIDE
local Current = require(ReplicatedStorage.Current.src)
Current.AddControllers(Folder)
Current.Start()
INSIDE A SERVICE:
This code allows you to createee a functional service for Current.
local MyService = Current.CreateService{
Name = "MyService"
}
function MyService:CurrentStart()
end
return MyService
INSIDE A CONTROLLER
This code allows you to create a functional controller for Current
local MyController = Current.CreateController{
Name = "MyController"
}
function MyController:CurrentStart()
end
return MyController
PRIORITIZE START
You can prioritize which service/controller starts first!
local Current = require(ReplicatedStorage.Current.src)
Current.AddServices(Folder)
Current.PrioritizeStart({
[1] = "MyService",
[2] = "TestService"
})
Current.Start()