Search found 14 matches
- Wed Jun 22, 2011 6:52 pm
- Forum: Libraries and Tools
- Topic: Serial- A serialization library (Who would have guessed?)
- Replies: 16
- Views: 12066
Re: Serial- A serialization library (Who would have guessed?
I was looking around, and I couldn't find a good serialization library. Obviously I didn't look very hard, because I found TSerial five minutes after I finished writing this, but that isn't the point. Somebody is probably going to comment "oh, somebody else's library does this this and this an...
- Wed Jun 22, 2011 5:47 am
- Forum: Libraries and Tools
- Topic: Serial- A serialization library (Who would have guessed?)
- Replies: 16
- Views: 12066
Re: Serial- A serialization library (Who would have guessed?
Sorry, I should have clarified more. The way I do objects is to do, for example namespace = namespace or {} namespace.ObjectName = {} namespace.ObjectName.__index = namespace.ObjectName function namespace.ObjectName:new( data ) local objectName = {} objectName.randomData = data setmetatable( objectN...
- Wed Jun 22, 2011 5:12 am
- Forum: Libraries and Tools
- Topic: Serial- A serialization library (Who would have guessed?)
- Replies: 16
- Views: 12066
Re: Serial- A serialization library (Who would have guessed?
I'm not a master of Lua, but the way I've written it, I think if you provide a :__serialize() function in the metatable, like RandomObject = {} RandomObject.__index = RandomObject --things that operate on random objects function RandomObject:__serialize() --return a string that you can make new Rand...
- Wed Jun 22, 2011 2:15 am
- Forum: Libraries and Tools
- Topic: Serial- A serialization library (Who would have guessed?)
- Replies: 16
- Views: 12066
Serial- A serialization library (Who would have guessed?)
I was looking around, and I couldn't find a good serialization library. Obviously I didn't look very hard, because I found TSerial five minutes after I finished writing this, but that isn't the point. Somebody is probably going to comment "oh, somebody else's library does this this and this and...