2022-12-28 05:57:43 -05:00
|
|
|
do
|
2023-09-29 19:17:57 -04:00
|
|
|
local TokenSpawnTracker = {}
|
|
|
|
local internal = {}
|
|
|
|
|
|
|
|
internal.getSpawnTracker = function()
|
2023-10-01 20:05:00 -04:00
|
|
|
return getObjectsWithTag("TokenSpawnTracker")[1]
|
2023-09-29 19:17:57 -04:00
|
|
|
end
|
2022-12-28 05:57:43 -05:00
|
|
|
|
|
|
|
TokenSpawnTracker.hasSpawnedTokens = function(cardGuid)
|
2023-09-29 19:17:57 -04:00
|
|
|
return internal.getSpawnTracker().call("hasSpawnedTokens", cardGuid)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.markTokensSpawned = function(cardGuid)
|
2023-09-29 19:17:57 -04:00
|
|
|
return internal.getSpawnTracker().call("markTokensSpawned", cardGuid)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetTokensSpawned = function(cardGuid)
|
2023-09-29 19:17:57 -04:00
|
|
|
return internal.getSpawnTracker().call("resetTokensSpawned", cardGuid)
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetAllAssetAndEvents = function()
|
2023-09-29 19:17:57 -04:00
|
|
|
return internal.getSpawnTracker().call("resetAllAssetAndEvents")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetAllLocations = function()
|
2023-09-29 19:17:57 -04:00
|
|
|
return internal.getSpawnTracker().call("resetAllLocations")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
TokenSpawnTracker.resetAll = function()
|
2023-09-29 19:17:57 -04:00
|
|
|
return internal.getSpawnTracker().call("resetAll")
|
2022-12-28 05:57:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
return TokenSpawnTracker
|
|
|
|
end
|