static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.ClothSphereColliderPair o; if (argc == 2) { UnityEngine.SphereCollider a1; checkType(l, 2, out a1); o = new UnityEngine.ClothSphereColliderPair(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 3) { UnityEngine.SphereCollider a1; checkType(l, 2, out a1); UnityEngine.SphereCollider a2; checkType(l, 3, out a2); o = new UnityEngine.ClothSphereColliderPair(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } }
static void Cloth_sphereColliders(JSVCall vc) { if (vc.bGet) { UnityEngine.Cloth _this = (UnityEngine.Cloth)vc.csObj; var result = _this.sphereColliders; var arrRet = result; for (int i = 0; arrRet != null && i < arrRet.Length; i++) { JSMgr.datax.setObject((int)JSApi.SetType.SaveAndTempTrace, arrRet[i]); JSApi.moveSaveID2Arr(i); } JSApi.setArrayS((int)JSApi.SetType.Rval, (arrRet != null ? arrRet.Length : 0), true); } else { UnityEngine.ClothSphereColliderPair[] arg0 = JSDataExchangeMgr.GetJSArg <UnityEngine.ClothSphereColliderPair[]>(() => { int jsObjID = JSApi.getObject((int)JSApi.GetType.Arg); int length = JSApi.getArrayLength(jsObjID); var ret = new UnityEngine.ClothSphereColliderPair[length]; for (var i = 0; i < length; i++) { JSApi.getElement(jsObjID, i); ret[i] = (UnityEngine.ClothSphereColliderPair)JSMgr.datax.getObject((int)JSApi.GetType.SaveAndRemove); } return(ret); }); UnityEngine.Cloth _this = (UnityEngine.Cloth)vc.csObj; _this.sphereColliders = arg0; } }
public static int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.ClothSphereColliderPair o; if(argc==2){ UnityEngine.SphereCollider a1; checkType(l,2,out a1); o=new UnityEngine.ClothSphereColliderPair(a1); pushValue(l,o); return 1; } else if(argc==3){ UnityEngine.SphereCollider a1; checkType(l,2,out a1); UnityEngine.SphereCollider a2; checkType(l,3,out a2); o=new UnityEngine.ClothSphereColliderPair(a1,a2); pushValue(l,o); return 1; } LuaDLL.luaL_error(l,"New object failed."); return 0; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif int argc = LuaDLL.lua_gettop(l); UnityEngine.ClothSphereColliderPair o; if (argc == 2) { UnityEngine.SphereCollider a1; checkType(l, 2, out a1); o = new UnityEngine.ClothSphereColliderPair(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 3) { UnityEngine.SphereCollider a1; checkType(l, 2, out a1); UnityEngine.SphereCollider a2; checkType(l, 3, out a2); o = new UnityEngine.ClothSphereColliderPair(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 0) { o = new UnityEngine.ClothSphereColliderPair(); pushValue(l, true); pushObject(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static void ClothSphereColliderPair_second(JSVCall vc) { if (vc.bGet) { UnityEngine.ClothSphereColliderPair _this = (UnityEngine.ClothSphereColliderPair)vc.csObj; var result = _this.second; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.SphereCollider arg0 = (UnityEngine.SphereCollider)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.ClothSphereColliderPair _this = (UnityEngine.ClothSphereColliderPair)vc.csObj; _this.second = arg0; JSMgr.changeJSObj(vc.jsObjID, _this); } }
static int _CreateClothSphereColliderPair(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 1) { SphereCollider arg0 = (SphereCollider)LuaScriptMgr.GetUnityObject(L, 1, typeof(SphereCollider)); ClothSphereColliderPair obj = new ClothSphereColliderPair(arg0); LuaScriptMgr.PushValue(L, obj); return 1; } else if (count == 2) { SphereCollider arg0 = (SphereCollider)LuaScriptMgr.GetUnityObject(L, 1, typeof(SphereCollider)); SphereCollider arg1 = (SphereCollider)LuaScriptMgr.GetUnityObject(L, 2, typeof(SphereCollider)); ClothSphereColliderPair obj = new ClothSphereColliderPair(arg0,arg1); LuaScriptMgr.PushValue(L, obj); return 1; } else if (count == 0) { ClothSphereColliderPair obj = new ClothSphereColliderPair(); LuaScriptMgr.PushValue(L, obj); return 1; } else { LuaDLL.luaL_error(L, "invalid arguments to method: ClothSphereColliderPair.New"); } return 0; }