_G.TS__CLASS__REGISTRY = _G.TS__CLASS__REGISTRY or ({})
function __TS__Class(id)
    if (id ~= nil) and _G.TS__CLASS__REGISTRY[id] then
        return _G.TS__CLASS__REGISTRY[id]
    else
        local c = {}
        c.__index = c
        c.prototype = {}
        c.prototype.__index = c.prototype
        c.prototype.constructor = c
        if id ~= nil then
            _G.TS__CLASS__REGISTRY[id] = c
        end
        return c
    end
end
