This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function class(classname, super) | |
local superType = type(super) | |
local cls | |
if superType ~= "function" and superType ~= "table" then | |
superType = nil | |
super = nil | |
end | |
if superType == "function" or (super and super.__ctype == 1) then | |
-- inherited from native C++ Object | |
cls = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Threading; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using MsgPack; | |
using MsgPack.Serialization; |