2022-12-28 05:57:43 -05:00
|
|
|
do
|
2023-09-29 19:17:57 -04:00
|
|
|
local TokenSpawnTracker = {}
|
2023-10-18 14:55:38 -04:00
|
|
|
local guidReferenceApi = require("core/GUIDReferenceApi")
|
2023-09-29 19:17:57 -04:00
|
|
|
|
2023-10-02 07:51:10 -04:00
|
|
|
local function getSpawnTracker()
|
2023-10-18 14:55:38 -04:00
|
|
|
return guidReferenceApi.getObjectByOwnerAndType("Mythos", "TokenSpawnTracker")
|
2023-09-29 19:17:57 -04:00
|
|
|
end
|
2022-12-28 05:57:43 -05:00
|
|
|
|
|
|
|
TokenSpawnTracker.hasSpawnedTokens = function(cardGuid)
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("hasSpawnedTokens", cardGuid)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.markTokensSpawned = function(cardGuid)
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("markTokensSpawned", cardGuid)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
2024-06-28 08:02:41 -04:00
|
|
|
TokenSpawnTracker.resetTokensSpawned = function(card)
|
|
|
|
return getSpawnTracker().call("resetTokensSpawned", card)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetAllAssetAndEvents = function()
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("resetAllAssetAndEvents")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetAllLocations = function()
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("resetAllLocations")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetAll = function()
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("resetAll")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
return TokenSpawnTracker
|
|
|
|
end
|