static internal void Lua_Item_ItemFunc(LuaFunction ld, Item.ItemInterface a1, System.Object a2)
        {
            IntPtr l     = ld.L;
            int    error = pushTry(l);

            pushValue(l, a1);
            pushValue(l, a2);
            ld.pcall(2, error);
            LuaDLL.lua_settop(l, error - 1);
        }
Esempio n. 2
0
 static public int GetCache(IntPtr l)
 {
     try {
         Item.ItemInterface self = (Item.ItemInterface)checkSelf(l);
         var ret = self.GetCache();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 3
0
 static public int constructor(IntPtr l)
 {
     try {
         Item.ItemInterface o;
         Item a1;
         checkType(l, 2, out a1);
         o = new Item.ItemInterface(a1);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }