Difference between revisions of "Serial"
Whitewater (talk | contribs) (Created page with "==Serial== Converts tables into Lua script that, when run, recreates the table. ==Download== [http://github.com/Whitewater/Serial Serial] on Github {{#set:LOVE Version=all}} ...") |
Whitewater (talk | contribs) m (Updates) |
||
Line 1: | Line 1: | ||
==Serial== | ==Serial== | ||
Converts tables into Lua script that, when run, recreates the table. | Converts tables into Lua script that, when run, recreates the table. | ||
+ | ==Features== | ||
+ | As keys: Strings, numbers, and booleans | ||
+ | As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, and certain objects. | ||
+ | |||
+ | To make an object supported, make a function __serialize in the metatable that returns a string that recreates the object. | ||
==Download== | ==Download== | ||
[http://github.com/Whitewater/Serial Serial] on [[Github]] | [http://github.com/Whitewater/Serial Serial] on [[Github]] |
Revision as of 22:59, 22 June 2011
Serial
Converts tables into Lua script that, when run, recreates the table.
Features
As keys: Strings, numbers, and booleans As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, and certain objects.
To make an object supported, make a function __serialize in the metatable that returns a string that recreates the object.