static int set_BuffInfo(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MyLib.CGPlayerCmd obj = (MyLib.CGPlayerCmd)o; MyLib.BuffInfo arg0 = (MyLib.BuffInfo)ToLua.CheckObject(L, 2, typeof(MyLib.BuffInfo)); obj.BuffInfo = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index BuffInfo on a nil value")); } }
static int get_BuffInfo(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MyLib.CGPlayerCmd obj = (MyLib.CGPlayerCmd)o; MyLib.BuffInfo ret = obj.BuffInfo; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index BuffInfo on a nil value")); } }