Type | Table |
Library | save.* |
Keywords | data, save |
See also | Sample code, save.save(), save.load() |
This property is a table of the current save data for the application. The data is loaded from the save file by calling save.load(), and saved by calling save.save().
local save = require 'plugin.save'
save.init( "example.json", 1, {36, 45, 92, 36, 19, 28, 5}, "bveiubv984nw0" )
save.load()
print(save.data)
if (save.data["field"]) then
print(save.data["field"])
else
save.data["field"] = "value"
end
save.save()