forked from Bastion/Bastion
Compare commits
No commits in common. '630fcfc3d9ad9c1728789cf08698c6a1547de3ae' and '8cf6ffcb8efb26499e243f310d9246122e211d5e' have entirely different histories.
630fcfc3d9
...
8cf6ffcb8e
@ -1,17 +0,0 @@ |
|||||||
local Tinkr, Bastion = ... |
|
||||||
local ExampleModule = Bastion.Module:New('ExampleModule') |
|
||||||
local Player = Bastion.UnitManager:Get('player') |
|
||||||
|
|
||||||
local FlashHeal = Bastion.SpellBook:GetSpell(2061) |
|
||||||
|
|
||||||
local AdvancedMath = Bastion:GetLibrary('AdvancedMath') |
|
||||||
|
|
||||||
print(AdvancedMath:Add(1, 2)) |
|
||||||
|
|
||||||
ExampleModule:Sync(function() |
|
||||||
if Player:GetHP() <= 50 then |
|
||||||
FlashHeal:Cast(Player) |
|
||||||
end |
|
||||||
end) |
|
||||||
|
|
||||||
Bastion:Register(ExampleModule) |
|
@ -1,14 +0,0 @@ |
|||||||
local Tinkr, Bastion = ... |
|
||||||
|
|
||||||
local ExampleModule = Bastion.Module:New('ExampleModule') |
|
||||||
local Player = Bastion.UnitManager:Get('player') |
|
||||||
|
|
||||||
local AdvancedMath = {} |
|
||||||
|
|
||||||
AdvancedMath.__index = AdvancedMath |
|
||||||
|
|
||||||
function AdvancedMath:Add(a, b) |
|
||||||
return a + b |
|
||||||
end |
|
||||||
|
|
||||||
Bastion:RegisterLibrary('AdvancedMath', AdvancedMath) |
|
Loading…
Reference in new issue