SCED/src/core/token/TokenSpawnTrackerApi.ttslua

35 lines
991 B
Plaintext
Raw Normal View History

do
local TokenSpawnTrackerApi = {}
2023-10-18 14:55:38 -04:00
local guidReferenceApi = require("core/GUIDReferenceApi")
2023-10-02 07:51:10 -04:00
local function getSpawnTracker()
2023-10-18 14:55:38 -04:00
return guidReferenceApi.getObjectByOwnerAndType("Mythos", "TokenSpawnTracker")
end
TokenSpawnTrackerApi.hasSpawnedTokens = function(cardGuid)
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("hasSpawnedTokens", cardGuid)
end
TokenSpawnTrackerApi.markTokensSpawned = function(cardGuid)
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("markTokensSpawned", cardGuid)
end
TokenSpawnTrackerApi.resetTokensSpawned = function(card)
return getSpawnTracker().call("resetTokensSpawned", card)
end
TokenSpawnTrackerApi.resetAllAssetAndEvents = function()
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetAllAssetAndEvents")
end
TokenSpawnTrackerApi.resetAllLocations = function()
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetAllLocations")
end
TokenSpawnTrackerApi.resetAll = function()
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetAll")
end
return TokenSpawnTrackerApi
end