summaryrefslogtreecommitdiff
path: root/examples/resources/lib/rune.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/lib/rune.lua')
-rw-r--r--examples/resources/lib/rune.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/resources/lib/rune.lua b/examples/resources/lib/rune.lua
index 12bf72d..5e04d8b 100644
--- a/examples/resources/lib/rune.lua
+++ b/examples/resources/lib/rune.lua
@@ -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