SCED/src/core/token/TokenSpawnTrackerApi.ttslua

35 lines
966 B
Plaintext
Raw Normal View History

do
local TokenSpawnTracker = {}
local internal = {}
internal.getSpawnTracker = function()
2023-10-01 20:05:00 -04:00
return getObjectsWithTag("TokenSpawnTracker")[1]
end
TokenSpawnTracker.hasSpawnedTokens = function(cardGuid)
return internal.getSpawnTracker().call("hasSpawnedTokens", cardGuid)
end
TokenSpawnTracker.markTokensSpawned = function(cardGuid)
return internal.getSpawnTracker().call("markTokensSpawned", cardGuid)
end
TokenSpawnTracker.resetTokensSpawned = function(cardGuid)
return internal.getSpawnTracker().call("resetTokensSpawned", cardGuid)
end
TokenSpawnTracker.resetAllAssetAndEvents = function()
return internal.getSpawnTracker().call("resetAllAssetAndEvents")
end
TokenSpawnTracker.resetAllLocations = function()
return internal.getSpawnTracker().call("resetAllLocations")
end
TokenSpawnTracker.resetAll = function()
return internal.getSpawnTracker().call("resetAll")
end
return TokenSpawnTracker
end