类型 函数 库 gamecircle.* 返回值 密钥表 版本 2024.3703 版 关键字 低,列表,可同步数字列表,Whispersync
返回存储在当前 Whispersync GameData 级别的低数字列表的密钥。返回值为 密钥表。
local keys = gamecircle.Whispersync.GetLowNumberListKeys()
local lowListKey = "myFirstLowNumberList"
local gamecircle = require("plugin.gamecircle")
gamecircle.Init(false, false, true)
gamecircle.Whispersync.SetLowNumberListLength(lowListKey, 4)
gamecircle.Whispersync.AddToLowNumberList(lowListKey, 10, "INT")
gamecircle.Whispersync.AddToLowNumberList(lowListKey, 1000, "INT")
gamecircle.Whispersync.AddToLowNumberList(lowListKey, 1, "INT")
gamecircle.Whispersync.AddToLowNumberList(lowListKey, 10000, "INT")
gamecircle.Whispersync.AddToLowNumberList(lowListKey, 100, "INT")
print("Here is the list of numbers as they are stored in the low number list. They should be in the order from lowest to highest.")
local lowList = gamecircle.Whispersync.GetLowNumberList(lowListKey)
for i,entry in ipairs(lowList) do
print("-" entry.value)
end
local keys = gamecircle.Whispersync.GetLowNumberListKeys()
for i,key in ipairs(keys) do
print("-" .. key)
end