Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 915 Bytes

data.markdown

File metadata and controls

32 lines (22 loc) · 915 Bytes

save.data

 
Type Table
Library save.*
Keywords data, save
See also Sample code, save.save(), save.load()

Overview

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().

Example

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()