2022-12-28 05:57:43 -05:00
|
|
|
do
|
2024-07-13 08:05:16 -04:00
|
|
|
local TokenSpawnTrackerApi = {}
|
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
|
|
|
|
2024-07-13 08:05:16 -04:00
|
|
|
TokenSpawnTrackerApi.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
|
|
|
|
|
2024-07-13 08:05:16 -04:00
|
|
|
TokenSpawnTrackerApi.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-07-13 08:05:16 -04:00
|
|
|
TokenSpawnTrackerApi.resetTokensSpawned = function(card)
|
2024-06-28 08:02:41 -04:00
|
|
|
return getSpawnTracker().call("resetTokensSpawned", card)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
2024-07-13 08:05:16 -04:00
|
|
|
TokenSpawnTrackerApi.resetAllAssetAndEvents = function()
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("resetAllAssetAndEvents")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
2024-07-13 08:05:16 -04:00
|
|
|
TokenSpawnTrackerApi.resetAllLocations = function()
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("resetAllLocations")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
2024-07-13 08:05:16 -04:00
|
|
|
TokenSpawnTrackerApi.resetAll = function()
|
2023-10-02 07:51:10 -04:00
|
|
|
return getSpawnTracker().call("resetAll")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
2024-07-13 08:05:16 -04:00
|
|
|
return TokenSpawnTrackerApi
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|