Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 755 Bytes

save.markdown

File metadata and controls

30 lines (19 loc) · 755 Bytes

save.save()

 
Type function
Library save.*
Return value nil
Keywords save, JSON
See also Sample code, save.load()

Overview

This function is used to save the current data (in the save.data table) to the save file.

Syntax

save.save()

Examples

local save = require 'plugin.save'

save.init( "example.json", 1, {36, 45, 92, 36, 19, 28, 5}, "bveiubv984nw0" )
save.data["new_field"] = 100
save.save()