static int set_CommonCallback(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Net obj = (Net)o; Net.CommonDataCallback arg0 = (Net.CommonDataCallback)ToLua.CheckDelegate <Net.CommonDataCallback>(L, 2); obj.CommonCallback = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CommonCallback on a nil value")); } }
static int get_CommonCallback(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Net obj = (Net)o; Net.CommonDataCallback ret = obj.CommonCallback; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CommonCallback on a nil value")); } }