2022-12-13 14:02:30 -05:00
|
|
|
-- Bundled by luabundle {"version":"1.6.0"}
|
|
|
|
local __bundle_require, __bundle_loaded, __bundle_register, __bundle_modules = (function(superRequire)
|
|
|
|
local loadingPlaceholder = {[{}] = true}
|
|
|
|
|
|
|
|
local register
|
|
|
|
local modules = {}
|
|
|
|
|
|
|
|
local require
|
|
|
|
local loaded = {}
|
|
|
|
|
|
|
|
register = function(name, body)
|
|
|
|
if not modules[name] then
|
|
|
|
modules[name] = body
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
require = function(name)
|
|
|
|
local loadedModule = loaded[name]
|
|
|
|
|
|
|
|
if loadedModule then
|
|
|
|
if loadedModule == loadingPlaceholder then
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
else
|
|
|
|
if not modules[name] then
|
|
|
|
if not superRequire then
|
|
|
|
local identifier = type(name) == 'string' and '\"' .. name .. '\"' or tostring(name)
|
|
|
|
error('Tried to require ' .. identifier .. ', but no such module has been registered')
|
|
|
|
else
|
|
|
|
return superRequire(name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
loaded[name] = loadingPlaceholder
|
|
|
|
loadedModule = modules[name](require, loaded, register, modules)
|
|
|
|
loaded[name] = loadedModule
|
|
|
|
end
|
|
|
|
|
|
|
|
return loadedModule
|
|
|
|
end
|
|
|
|
|
|
|
|
return require, loaded, register, modules
|
|
|
|
end)(nil)
|
2024-02-17 19:48:30 -05:00
|
|
|
__bundle_register("__root", function(require, _LOADED, __bundle_register, __bundle_modules)
|
|
|
|
require("arkhamdb/Configuration")
|
|
|
|
end)
|
2022-12-13 14:02:30 -05:00
|
|
|
__bundle_register("arkhamdb/Configuration", function(require, _LOADED, __bundle_register, __bundle_modules)
|
2024-02-17 19:48:30 -05:00
|
|
|
---@type table Contains fields used by the deck importer
|
2021-09-03 13:52:12 -04:00
|
|
|
configuration = {
|
|
|
|
api_uri = "https://arkhamdb.com/api/public",
|
|
|
|
public_deck = "decklist",
|
|
|
|
private_deck = "deck",
|
|
|
|
cards = "card",
|
|
|
|
taboo = "taboos",
|
2023-01-29 19:31:52 -05:00
|
|
|
card_bag_guid = "15bb07"
|
2021-09-03 13:52:12 -04:00
|
|
|
}
|
2021-09-03 15:12:05 -04:00
|
|
|
|
2021-09-05 10:07:41 -04:00
|
|
|
function onRotate(spin, flip, player_color, old_spin, old_flip)
|
2023-02-25 20:59:36 -05:00
|
|
|
local builder = getObjectFromGUID("a28140")
|
|
|
|
|
2021-09-03 15:12:05 -04:00
|
|
|
if flip == 0 then
|
|
|
|
configuration.api_uri = "https://arkhamdb.adamgoldsmith.name/api/public"
|
2023-02-25 20:59:36 -05:00
|
|
|
builder.UI.setXml('<Text fontSize="25" color="orange" position="17 -74 -11" rotation="0 0 180">Adam</Text>')
|
2021-09-03 15:12:05 -04:00
|
|
|
else
|
|
|
|
configuration.api_uri = "https://arkhamdb.com/api/public"
|
2023-02-25 20:59:36 -05:00
|
|
|
builder.UI.setXml('')
|
2021-09-03 15:12:05 -04:00
|
|
|
end
|
|
|
|
|
2023-02-25 20:59:36 -05:00
|
|
|
builder.call("arkhamdb_reinit", {})
|
|
|
|
|
2021-09-03 15:12:05 -04:00
|
|
|
print("Set URL to " .. configuration.api_uri)
|
|
|
|
end
|
2022-12-13 18:01:00 -05:00
|
|
|
|
2022-12-13 14:02:30 -05:00
|
|
|
end)
|
2024-02-04 10:51:51 -05:00
|
|
|
__bundle_register("__root", function(require, _LOADED, __bundle_register, __bundle_modules)
|
|
|
|
require("arkhamdb/Configuration")
|
2022-12-13 14:02:30 -05:00
|
|
|
end)
|
2022-12-13 18:01:00 -05:00
|
|
|
return __bundle_require("__root")
|