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