Exemplo n.º 1
0
 static public int methodWrapper(IntPtr l)
 {
     try
     {
         ObjectCache   oc   = ObjectCache.get(l);
         LuaCSFunction func = (LuaCSFunction)oc.get(l, 1);
         return(func(l));
     }
     catch (Exception e)
     {
         return(error(l, e));
     }
 }
Exemplo n.º 2
0
        public static int methodWrapper(IntPtr l)
        {
            int result;

            try
            {
                ObjectCache   objectCache   = ObjectCache.get(l);
                LuaCSFunction luaCSFunction = (LuaCSFunction)objectCache.get(l, 1);
                result = luaCSFunction(l);
            }
            catch (Exception e)
            {
                result = LuaObject.error(l, e);
            }
            return(result);
        }
Exemplo n.º 3
0
        // lightobj is non-exported object used for re-get from c#, not for lua
        public static void pushLightObject(IntPtr l, object t)
        {
            ObjectCache oc = ObjectCache.get(l);

            oc.push(l, t, false);
        }
Exemplo n.º 4
0
        public static void pushObject(IntPtr l, Array o)
        {
            ObjectCache oc = ObjectCache.get(l);

            oc.push(l, o);
        }
Exemplo n.º 5
0
        public static void setBack(IntPtr l, object o)
        {
            ObjectCache t = ObjectCache.get(l);

            t.setBack(l, 1, o);
        }
Exemplo n.º 6
0
        static public object checkObj(IntPtr l, int p)
        {
            ObjectCache oc = ObjectCache.get(l);

            return(oc.get(l, p));
        }
Exemplo n.º 7
0
        public void ClearObject(UnityEngine.Object obj)
        {
            ObjectCache oc = ObjectCache.get(L);

            oc.gc(obj);
        }