Object lib serialization.

This commit is contained in:
jussi
2024-05-22 00:11:40 +03:00
parent c95c797da6
commit cb1bc03681
10 changed files with 198 additions and 8 deletions

View File

@@ -32,6 +32,10 @@ function Rune:set( string )
self.string = string or ""
end
function Rune:serialize()
return "Rune:new("..self.string..")"
end
function Rune:clone()
return Rune:new( self.string )
end