SCED/src/core/MythosAreaApi.ttslua

21 lines
586 B
Plaintext
Raw Normal View History

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()
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