SCED/src/core/token/TokenSpawnTrackerApi.ttslua

35 lines
967 B
Plaintext
Raw Normal View History

do
local TokenSpawnTracker = {}
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
TokenSpawnTracker.hasSpawnedTokens = function(cardGuid)
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("hasSpawnedTokens", cardGuid)
end
TokenSpawnTracker.markTokensSpawned = function(cardGuid)
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("markTokensSpawned", cardGuid)
end
TokenSpawnTracker.resetTokensSpawned = function(card)
return getSpawnTracker().call("resetTokensSpawned", card)
end
TokenSpawnTracker.resetAllAssetAndEvents = function()
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetAllAssetAndEvents")
end
TokenSpawnTracker.resetAllLocations = function()
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetAllLocations")
end
TokenSpawnTracker.resetAll = function()
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetAll")
end
return TokenSpawnTracker
end