-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
173 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
|
||
local function LifecycleCallback(args) | ||
print(args) | ||
end | ||
|
||
return Framework { | ||
LifecycleCallback = LifecycleCallback, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "LIFECYCLE-TEST" | ||
|
||
local RunService = game:GetService("RunService") | ||
local Lifecycle = Framework.Lifecycle("LifecycleCallback", function(self, ...) | ||
for _, listener in self.Listeners do | ||
print(`{TEST_NAME}: Lifecycle custom listener`) | ||
listener(...) | ||
end | ||
end) | ||
|
||
RunService.Heartbeat:Connect(function() | ||
Lifecycle:Fire(TEST_NAME) | ||
end) | ||
|
||
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local Packages = script.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
|
||
local function LifecycleTest(arg) | ||
print(`{arg}: Default listener`) | ||
end | ||
|
||
return Framework { | ||
LifecycleTest = LifecycleTest, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local Packages = script.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "LIFECYCLE-TEST" | ||
|
||
local RunService = game:GetService("RunService") | ||
local Lifecycle = Framework.Lifecycle("LifecycleTest") | ||
|
||
RunService.Heartbeat:Connect(function() | ||
Lifecycle:Fire(TEST_NAME) | ||
end) | ||
|
||
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "DEPENDENCIES-TEST" | ||
|
||
local Dep2 = require(script.Parent.dep2) | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: Dependency 1, using Dependency 2 (second)`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
Uses = { Dep2 } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "DEPENDENCIES-TEST" | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: Dependency 2 (first)`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "DEPENDENCIES-TEST" | ||
|
||
local Dep1 = require(script.Parent.dep1) | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: Module (third)`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
Uses = { Dep1 } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "ORDER-TEST" | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: First`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
Order = -3, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "ORDER-TEST" | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: Second`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
Order = -2, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local Packages = script.Parent.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "ORDER-TEST" | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: Third`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
Order = -1, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local Packages = script.Parent.Parent.Parent | ||
local Framework = require(Packages.framework.src) | ||
local TEST_NAME = "PROVIDER-TEST" | ||
|
||
local function Init() | ||
print(`{TEST_NAME}: Init (first)`) | ||
end | ||
|
||
local function Start() | ||
print(`{TEST_NAME}: Start (second)`) | ||
end | ||
|
||
return Framework { | ||
Init = Init, | ||
Start = Start, | ||
Name = "provider-custom", | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.