From f68e9544401279d1c6add1942611e374a9b30a5c Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 7 Aug 2024 22:21:28 +0200 Subject: [PATCH] added "hasLocationData" --- src/core/token/TokenManagerApi.ttslua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/token/TokenManagerApi.ttslua b/src/core/token/TokenManagerApi.ttslua index 37752580..abd1f424 100644 --- a/src/core/token/TokenManagerApi.ttslua +++ b/src/core/token/TokenManagerApi.ttslua @@ -10,6 +10,16 @@ do }) end + -- Checks to see if the given card has location data in the DataHelper + ---@param card tts__Object Card to check for data + ---@return boolean: True if this card has data in the helper, false otherwise + function TokenManagerApi.hasLocationData(card) + Global.call("callTable", { + { "TokenManager", "hasLocationData" }, + card + }) + end + -- Pushes new player card data into the local copy of the Data Helper player data. ---@param dataTable table Key/Value pairs following the DataHelper style function TokenManagerApi.addPlayerCardData(dataTable)