SCED/src/core/MythosAreaApi.ttslua

22 lines
702 B
Plaintext
Raw Normal View History

2023-03-01 23:35:04 +01:00
do
local MythosAreaApi = {}
-- returns the chaos token metadata (if provided through scenario reference card)
MythosAreaApi.returnTokenData = function()
2023-09-29 14:09:54 +02:00
local MythosArea = Global.call("getObjectFromMemo", {matColor = "Mythos", type = "MythosArea"})
return MythosArea.call("returnTokenData")
2023-03-01 23:35:04 +01:00
end
2023-09-29 14:09:54 +02:00
2023-09-21 02:05:35 +02:00
-- draw an encounter card to the requested position/rotation
MythosAreaApi.drawEncounterCard = function(pos, rotY, alwaysFaceUp)
2023-09-29 14:09:54 +02:00
local MythosArea = Global.call("getObjectFromMemo", {matColor = "Mythos", type = "MythosArea"})
MythosArea.call("drawEncounterCard", {
2023-09-21 02:05:35 +02:00
pos = pos,
rotY = rotY,
alwaysFaceUp = alwaysFaceUp
})
end
2023-03-01 23:35:04 +01:00
return MythosAreaApi
end