Type function Library gamecircle.* Return value DeveloperString Revision Release 2025.3721 Keywords Whispersync, DeveloperString, Get
Returns the DeveloperString assigned to the key value.
local devString = gamecircle.Whispersync.GetDeveloperString(key)
String. The key used to access a specific accumulated number.
local gamecircle = require("plugin.gamecircle")
gamecircle.Init(false, false, true)
local devString = gamecircle.Whispersync.GetDeveloperString("myFirstDevString")
local newStringValue = devString.value .. "a"
gamecircle.Whispersync.SetDeveloperString("myFirstDevString", newStringValue)
print("These are all the Developer Strings I've generated under the current GameData set of Whispersync.")
local keys = gamecircle.Whispersync.GetDeveloperStringKeys()
for i,key in ipairs(keys) do
print("-" .. key)
end
function WhispersyncCallback(event)
if event == "NEW_DATA" then
local checkDevString = gamecircle.Whispersync.GetDeveloperString("myFirstDevString")
if checkDevString.inConflit then
print("The Developer String is in conflict! Using cloud data and marking as resolved")
gamecircle.Whispersync.SetDeveloperString("myFirstDevString", checkDevString.cloudValue)
gameCircle.Whispersync.MarkAsResolved("myFirstDevString")
end
end
end
gamecircle.Whispersync.SetWhispersyncEventListener(WhispersyncCallback)