Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logic realignment #1011

Merged
merged 7 commits into from
May 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9,527 changes: 4,751 additions & 4,776 deletions AllTheThings.lua

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/base.lua
Original file line number Diff line number Diff line change
@@ -87,11 +87,11 @@ app.SetScript = function(self, ...)
_:SetScript(scriptName, nil);
end
end
-- Setup the callback tables since they are heavily used
app.__callbacks = {};
app.__combatcallbacks = {};
-- Triggers a timer callback method to run on the next game frame with the provided params; the method can only be set to run once per frame
local function Callback(method, ...)
if not app.__callbacks then
app.__callbacks = {};
end
if not app.__callbacks[method] then
app.__callbacks[method] = ... and {...} or true;
-- print("Callback:",method, ...)