SCED/src/core/token/TokenSpawnTrackerApi.ttslua

35 lines
989 B
Plaintext
Raw Normal View History

do
local TokenSpawnTracker = {}
2023-10-02 07:51:10 -04:00
local function getSpawnTracker()
local guidHandler = getObjectFromGUID("123456")
2023-10-02 07:51:10 -04:00
return guidHandler.call("getObjectByOwnerAndType", { owner = "Mythos", type = "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(cardGuid)
2023-10-02 07:51:10 -04:00
return getSpawnTracker().call("resetTokensSpawned", cardGuid)
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