static int set_WorldCenter(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DP_Battlefield obj = (DP_Battlefield)o; YQ2WorldCenter arg0 = (YQ2WorldCenter)ToLua.CheckUnityObject(L, 2, typeof(YQ2WorldCenter)); obj.WorldCenter = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WorldCenter on a nil value" : e.Message)); } }
static int get_WorldCenter(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DP_Battlefield obj = (DP_Battlefield)o; YQ2WorldCenter ret = obj.WorldCenter; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WorldCenter on a nil value" : e.Message)); } }