removed GUID reference from Token Spawn Tracker
This commit is contained in:
parent
0fedc74ded
commit
b1cff2fc28
@ -24,6 +24,7 @@
|
|||||||
"LuaScript": "require(\"core/token/TokenSpawnTracker\")",
|
"LuaScript": "require(\"core/token/TokenSpawnTracker\")",
|
||||||
"LuaScriptState": "{\"cards\":[]}",
|
"LuaScriptState": "{\"cards\":[]}",
|
||||||
"MeasureMovement": false,
|
"MeasureMovement": false,
|
||||||
|
"Memo": "{\"matColor\":\"Mythos\",\"type\":\"TokenSpawnTracker\"}",
|
||||||
"Name": "Checker_white",
|
"Name": "Checker_white",
|
||||||
"Nickname": "Token Spawn Tracker",
|
"Nickname": "Token Spawn Tracker",
|
||||||
"Snap": true,
|
"Snap": true,
|
||||||
|
@ -1,29 +1,33 @@
|
|||||||
do
|
do
|
||||||
local TokenSpawnTracker = { }
|
local TokenSpawnTracker = {}
|
||||||
local SPAWN_TRACKER_GUID = "e3ffc9"
|
local internal = {}
|
||||||
|
|
||||||
|
internal.getSpawnTracker = function()
|
||||||
|
return Global.call("getObjectFromMemo", {matColor = "Mythos", type = "TokenSpawnTracker"})
|
||||||
|
end
|
||||||
|
|
||||||
TokenSpawnTracker.hasSpawnedTokens = function(cardGuid)
|
TokenSpawnTracker.hasSpawnedTokens = function(cardGuid)
|
||||||
return getObjectFromGUID(SPAWN_TRACKER_GUID).call("hasSpawnedTokens", cardGuid)
|
return internal.getSpawnTracker().call("hasSpawnedTokens", cardGuid)
|
||||||
end
|
end
|
||||||
|
|
||||||
TokenSpawnTracker.markTokensSpawned = function(cardGuid)
|
TokenSpawnTracker.markTokensSpawned = function(cardGuid)
|
||||||
return getObjectFromGUID(SPAWN_TRACKER_GUID).call("markTokensSpawned", cardGuid)
|
return internal.getSpawnTracker().call("markTokensSpawned", cardGuid)
|
||||||
end
|
end
|
||||||
|
|
||||||
TokenSpawnTracker.resetTokensSpawned = function(cardGuid)
|
TokenSpawnTracker.resetTokensSpawned = function(cardGuid)
|
||||||
return getObjectFromGUID(SPAWN_TRACKER_GUID).call("resetTokensSpawned", cardGuid)
|
return internal.getSpawnTracker().call("resetTokensSpawned", cardGuid)
|
||||||
end
|
end
|
||||||
|
|
||||||
TokenSpawnTracker.resetAllAssetAndEvents = function()
|
TokenSpawnTracker.resetAllAssetAndEvents = function()
|
||||||
return getObjectFromGUID(SPAWN_TRACKER_GUID).call("resetAllAssetAndEvents")
|
return internal.getSpawnTracker().call("resetAllAssetAndEvents")
|
||||||
end
|
end
|
||||||
|
|
||||||
TokenSpawnTracker.resetAllLocations = function()
|
TokenSpawnTracker.resetAllLocations = function()
|
||||||
return getObjectFromGUID(SPAWN_TRACKER_GUID).call("resetAllLocations")
|
return internal.getSpawnTracker().call("resetAllLocations")
|
||||||
end
|
end
|
||||||
|
|
||||||
TokenSpawnTracker.resetAll = function()
|
TokenSpawnTracker.resetAll = function()
|
||||||
return getObjectFromGUID(SPAWN_TRACKER_GUID).call("resetAll")
|
return internal.getSpawnTracker().call("resetAll")
|
||||||
end
|
end
|
||||||
|
|
||||||
return TokenSpawnTracker
|
return TokenSpawnTracker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user