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