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