Example #1
0
        public void DetachFromScript()
        {
            var thread = new Lua();

            // Current dir will have to do for now, but this will inevitably not be desired
            // Users will expect it to be the same directly as the thread that spawned this callback
            // But how do we know what that directory was?
            LuaSandbox.CreateSandbox(thread, ".");
            LuaFile = new LuaFile(".")
            {
                Thread = thread
            };
        }