2023-03-01 23:35:04 +01:00
|
|
|
do
|
|
|
|
local MythosAreaApi = {}
|
|
|
|
local MYTHOS_AREA_GUID = "9f334f"
|
|
|
|
|
|
|
|
-- returns the chaos token metadata (if provided through scenario reference card)
|
|
|
|
MythosAreaApi.returnTokenData = function()
|
2023-06-18 14:07:24 -04:00
|
|
|
return getObjectFromGUID(MYTHOS_AREA_GUID).call("returnTokenData")
|
2023-03-01 23:35:04 +01:00
|
|
|
end
|
|
|
|
|
2023-09-21 02:05:35 +02:00
|
|
|
-- draw an encounter card to the requested position/rotation
|
|
|
|
MythosAreaApi.drawEncounterCard = function(pos, rotY, alwaysFaceUp)
|
|
|
|
getObjectFromGUID(MYTHOS_AREA_GUID).call("drawEncounterCard", {
|
|
|
|
pos = pos,
|
|
|
|
rotY = rotY,
|
|
|
|
alwaysFaceUp = alwaysFaceUp
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2023-03-01 23:35:04 +01:00
|
|
|
return MythosAreaApi
|
|
|
|
end
|