forked from Bastion/Bastion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
728 B
26 lines
728 B
11 months ago
|
local Tinkr, Bastion = ...
|
||
|
|
||
|
Bastion:RegisterLibrary(Bastion.Library:New({
|
||
|
name = 'AdvancedMath',
|
||
|
exports = {
|
||
|
default = function(self) -- Function exports are called when the library is loaded
|
||
|
-- Return default first, and then the remaining exports
|
||
|
local Dependable, OtherExports = self:Import('Dependable')
|
||
|
|
||
|
local CircularDependency = self:Import('Circular') -- Causes a circular dependency error
|
||
|
|
||
|
Dependable:Test(OtherExports.Test)
|
||
|
|
||
|
local AdvancedMath = {}
|
||
|
|
||
|
AdvancedMath.__index = AdvancedMath
|
||
|
|
||
|
function AdvancedMath:Add(a, b)
|
||
|
return a + b
|
||
|
end
|
||
|
|
||
|
return AdvancedMath
|
||
|
end
|
||
|
}
|
||
|
}))
|