We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heapvalue 和HeapValue
using System;
namespace PuertsStaticWrap { public static class UnityEngine_Vector3_Wrap {
static UnityEngine.Vector3 Heapvalue; [Puerts.MonoPInvokeCallback(typeof(Puerts.V8ConstructorCallback))] unsafe private static IntPtr Constructor(IntPtr isolate, IntPtr info, int paramLen, long data) { try { if (paramLen == 3) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); if (argHelper0.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper1.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper2.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var Arg0 = argHelper0.GetFloat(false); var Arg1 = argHelper1.GetFloat(false); var Arg2 = argHelper2.GetFloat(false); HeapValue = new UnityEngine.Vector3(Arg0, Arg1, Arg2); fixed (UnityEngine.Vector3* result = &HeapValue) { return new IntPtr(result); } } } if (paramLen == 2) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (argHelper0.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper1.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var Arg0 = argHelper0.GetFloat(false); var Arg1 = argHelper1.GetFloat(false); HeapValue = new UnityEngine.Vector3(Arg0, Arg1); fixed (UnityEngine.Vector3* result = &HeapValue) { return new IntPtr(result); } } } if (paramLen == 0) { { HeapValue = new UnityEngine.Vector3(); fixed (UnityEngine.Vector3* result = &HeapValue) { return new IntPtr(result); } } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to UnityEngine.Vector3 constructor"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } return IntPtr.Zero; } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Slerp(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.GetFloat(false); var result = UnityEngine.Vector3.Slerp(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_SlerpUnclamped(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.GetFloat(false); var result = UnityEngine.Vector3.SlerpUnclamped(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_OrthoNormalize(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { if (paramLen == 2) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(true); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(true); UnityEngine.Vector3.OrthoNormalize(ref Arg0, ref Arg1); argHelper0.SetByRefValue(Arg0); argHelper1.SetByRefValue(Arg1); return; } } if (paramLen == 3) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false) && argHelper2.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(true); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(true); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(true); UnityEngine.Vector3.OrthoNormalize(ref Arg0, ref Arg1, ref Arg2); argHelper0.SetByRefValue(Arg0); argHelper1.SetByRefValue(Arg1); argHelper2.SetByRefValue(Arg2); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to OrthoNormalize"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_RotateTowards(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.GetFloat(false); var Arg3 = argHelper3.GetFloat(false); var result = UnityEngine.Vector3.RotateTowards(Arg0, Arg1, Arg2, Arg3); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Lerp(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.GetFloat(false); var result = UnityEngine.Vector3.Lerp(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_LerpUnclamped(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.GetFloat(false); var result = UnityEngine.Vector3.LerpUnclamped(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_MoveTowards(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.GetFloat(false); var result = UnityEngine.Vector3.MoveTowards(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_SmoothDamp(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { if (paramLen == 5) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); var argHelper4 = new Puerts.ArgumentHelper((int)data, isolate, info, 4); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper2.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false) && argHelper3.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper4.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(true); var Arg3 = argHelper3.GetFloat(false); var Arg4 = argHelper4.GetFloat(false); var result = UnityEngine.Vector3.SmoothDamp(Arg0, Arg1, ref Arg2, Arg3, Arg4); argHelper0.SetByRefValue(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } if (paramLen == 4) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper2.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false) && argHelper3.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(true); var Arg3 = argHelper3.GetFloat(false); var result = UnityEngine.Vector3.SmoothDamp(Arg0, Arg1, ref Arg2, Arg3); argHelper0.SetByRefValue(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } if (paramLen == 6) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); var argHelper4 = new Puerts.ArgumentHelper((int)data, isolate, info, 4); var argHelper5 = new Puerts.ArgumentHelper((int)data, isolate, info, 5); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper2.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), true, false) && argHelper3.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper4.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper5.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(true); var Arg3 = argHelper3.GetFloat(false); var Arg4 = argHelper4.GetFloat(false); var Arg5 = argHelper5.GetFloat(false); var result = UnityEngine.Vector3.SmoothDamp(Arg0, Arg1, ref Arg2, Arg3, Arg4, Arg5); argHelper0.SetByRefValue(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to SmoothDamp"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_Set(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.GetFloat(false); var Arg1 = argHelper1.GetFloat(false); var Arg2 = argHelper2.GetFloat(false); (*obj).Set(Arg0, Arg1, Arg2); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Scale(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Scale(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_Scale(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); (*obj).Scale(Arg0); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Cross(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Cross(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_GetHashCode(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; if (paramLen == 0) { { var result = (*obj).GetHashCode(); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to GetHashCode"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_Equals(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; if (paramLen == 1) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (argHelper0.IsMatch(Puerts.JsValueType.Any, typeof(System.Object), false, false)) { var Arg0 = argHelper0.Get<System.Object>(false); var result = (*obj).Equals(Arg0); Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); return; } if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = (*obj).Equals(Arg0); Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to Equals"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Reflect(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Reflect(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Normalize(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Normalize(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_Normalize(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; { { (*obj).Normalize(); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Dot(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Dot(Arg0, Arg1); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Project(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Project(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_ProjectOnPlane(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.ProjectOnPlane(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Angle(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Angle(Arg0, Arg1); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_SignedAngle(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.SignedAngle(Arg0, Arg1, Arg2); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Distance(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Distance(Arg0, Arg1); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_ClampMagnitude(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.GetFloat(false); var result = UnityEngine.Vector3.ClampMagnitude(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Magnitude(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Magnitude(Arg0); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_SqrMagnitude(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.SqrMagnitude(Arg0); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Min(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Min(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Max(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Vector3.Max(Arg0, Arg1); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_ToString(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; if (paramLen == 0) { { var result = (*obj).ToString(); Puerts.PuertsDLL.ReturnString(isolate, info, result); return; } } if (paramLen == 1) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (argHelper0.IsMatch(Puerts.JsValueType.NullOrUndefined | Puerts.JsValueType.String, null, false, false)) { var Arg0 = argHelper0.GetString(false); var result = (*obj).ToString(Arg0); Puerts.PuertsDLL.ReturnString(isolate, info, result); return; } } if (paramLen == 2) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (argHelper0.IsMatch(Puerts.JsValueType.NullOrUndefined | Puerts.JsValueType.String, null, false, false) && argHelper1.IsMatch(Puerts.JsValueType.NullOrUndefined | Puerts.JsValueType.NativeObject, typeof(System.IFormatProvider), false, false)) { var Arg0 = argHelper0.GetString(false); var Arg1 = argHelper1.Get<System.IFormatProvider>(false); var result = (*obj).ToString(Arg0, Arg1); Puerts.PuertsDLL.ReturnString(isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to ToString"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_normalized(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var result = (*obj).normalized; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_magnitude(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var result = (*obj).magnitude; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_sqrMagnitude(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var result = (*obj).sqrMagnitude; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_zero(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.zero; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_one(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.one; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_forward(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.forward; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_back(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.back; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_up(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.up; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_down(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.down; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_left(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.left; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_right(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.right; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_positiveInfinity(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.positiveInfinity; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_negativeInfinity(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.negativeInfinity; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_kEpsilon(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.kEpsilon; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_kEpsilonNormalSqrt(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Vector3.kEpsilonNormalSqrt; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_x(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var result = (*obj).x; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_x(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).x = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_y(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var result = (*obj).y; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_y(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).y = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_z(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var result = (*obj).z; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_z(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).z = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void GetItem(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var keyHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (keyHelper.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var key = keyHelper.GetInt32(false); var result = (*obj)[key]; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); return; } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void SetItem(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Vector3*)self; var keyHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var valueHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (keyHelper.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var key = keyHelper.GetInt32(false); (*obj)[key] = valueHelper.GetFloat(false); return; } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Addition(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = arg0 + arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Subtraction(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = arg0 - arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_UnaryNegation(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = -arg0; Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Multiply(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { if (paramLen == 2) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false) && argHelper1.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var arg1 = argHelper1.GetFloat(false); var result = arg0 * arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } if (argHelper0.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector3), false, false)) { var arg0 = argHelper0.GetFloat(false); var arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = arg0 * arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to op_Multiply"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Division(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var arg1 = argHelper1.GetFloat(false); var result = arg0 / arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Equality(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = arg0 == arg1; Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Inequality(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var result = arg0 != arg1; Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } public static Puerts.TypeRegisterInfo GetRegisterInfo() { return new Puerts.TypeRegisterInfo() { BlittableCopy = true, Constructor = Constructor, Methods = new System.Collections.Generic.Dictionary<Puerts.MethodKey, Puerts.V8FunctionCallback>() { { new Puerts.MethodKey {Name = "Slerp", IsStatic = true}, F_Slerp },
{ new Puerts.MethodKey {Name = "SlerpUnclamped", IsStatic = true}, F_SlerpUnclamped }, { new Puerts.MethodKey {Name = "OrthoNormalize", IsStatic = true}, F_OrthoNormalize }, { new Puerts.MethodKey {Name = "RotateTowards", IsStatic = true}, F_RotateTowards }, { new Puerts.MethodKey {Name = "Lerp", IsStatic = true}, F_Lerp }, { new Puerts.MethodKey {Name = "LerpUnclamped", IsStatic = true}, F_LerpUnclamped }, { new Puerts.MethodKey {Name = "MoveTowards", IsStatic = true}, F_MoveTowards }, { new Puerts.MethodKey {Name = "SmoothDamp", IsStatic = true}, F_SmoothDamp }, { new Puerts.MethodKey {Name = "Set", IsStatic = false}, M_Set }, { new Puerts.MethodKey {Name = "Scale", IsStatic = true}, F_Scale }, { new Puerts.MethodKey {Name = "Scale", IsStatic = false}, M_Scale }, { new Puerts.MethodKey {Name = "Cross", IsStatic = true}, F_Cross }, { new Puerts.MethodKey {Name = "GetHashCode", IsStatic = false}, M_GetHashCode }, { new Puerts.MethodKey {Name = "Equals", IsStatic = false}, M_Equals }, { new Puerts.MethodKey {Name = "Reflect", IsStatic = true}, F_Reflect }, { new Puerts.MethodKey {Name = "Normalize", IsStatic = true}, F_Normalize }, { new Puerts.MethodKey {Name = "Normalize", IsStatic = false}, M_Normalize }, { new Puerts.MethodKey {Name = "Dot", IsStatic = true}, F_Dot }, { new Puerts.MethodKey {Name = "Project", IsStatic = true}, F_Project }, { new Puerts.MethodKey {Name = "ProjectOnPlane", IsStatic = true}, F_ProjectOnPlane }, { new Puerts.MethodKey {Name = "Angle", IsStatic = true}, F_Angle }, { new Puerts.MethodKey {Name = "SignedAngle", IsStatic = true}, F_SignedAngle }, { new Puerts.MethodKey {Name = "Distance", IsStatic = true}, F_Distance }, { new Puerts.MethodKey {Name = "ClampMagnitude", IsStatic = true}, F_ClampMagnitude }, { new Puerts.MethodKey {Name = "Magnitude", IsStatic = true}, F_Magnitude }, { new Puerts.MethodKey {Name = "SqrMagnitude", IsStatic = true}, F_SqrMagnitude }, { new Puerts.MethodKey {Name = "Min", IsStatic = true}, F_Min }, { new Puerts.MethodKey {Name = "Max", IsStatic = true}, F_Max }, { new Puerts.MethodKey {Name = "ToString", IsStatic = false}, M_ToString }, { new Puerts.MethodKey {Name = "get_Item", IsStatic = false}, GetItem } , { new Puerts.MethodKey {Name = "set_Item", IsStatic = false}, SetItem } , { new Puerts.MethodKey {Name = "op_Addition", IsStatic = true}, O_op_Addition }, { new Puerts.MethodKey {Name = "op_Subtraction", IsStatic = true}, O_op_Subtraction }, { new Puerts.MethodKey {Name = "op_UnaryNegation", IsStatic = true}, O_op_UnaryNegation }, { new Puerts.MethodKey {Name = "op_Multiply", IsStatic = true}, O_op_Multiply }, { new Puerts.MethodKey {Name = "op_Division", IsStatic = true}, O_op_Division }, { new Puerts.MethodKey {Name = "op_Equality", IsStatic = true}, O_op_Equality }, { new Puerts.MethodKey {Name = "op_Inequality", IsStatic = true}, O_op_Inequality } }, Properties = new System.Collections.Generic.Dictionary<string, Puerts.PropertyRegisterInfo>() { {"normalized", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_normalized, Setter = null} }, {"magnitude", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_magnitude, Setter = null} }, {"sqrMagnitude", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_sqrMagnitude, Setter = null} }, {"zero", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_zero, Setter = null} }, {"one", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_one, Setter = null} }, {"forward", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_forward, Setter = null} }, {"back", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_back, Setter = null} }, {"up", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_up, Setter = null} }, {"down", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_down, Setter = null} }, {"left", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_left, Setter = null} }, {"right", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_right, Setter = null} }, {"positiveInfinity", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_positiveInfinity, Setter = null} }, {"negativeInfinity", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_negativeInfinity, Setter = null} }, {"kEpsilon", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_kEpsilon, Setter = null} }, {"kEpsilonNormalSqrt", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_kEpsilonNormalSqrt, Setter = null} }, {"x", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_x, Setter = S_x} }, {"y", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_y, Setter = S_y} }, {"z", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_z, Setter = S_z} } }, LazyMethods = new System.Collections.Generic.Dictionary<Puerts.MethodKey, Puerts.V8FunctionCallback>() {
}, LazyProperties = new System.Collections.Generic.Dictionary<string, Puerts.PropertyRegisterInfo>() { } }; } unsafe private static UnityEngine.Vector3 StaticGetter(int jsEnvIdx, IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) { UnityEngine.Vector3* result = (UnityEngine.Vector3*)getValueApi.GetNativeObject(isolate, value, isByRef); return result == null ? default(UnityEngine.Vector3) : *result; } unsafe private static void StaticSetter(int jsEnvIdx, IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, UnityEngine.Vector3 val) { HeapValue = val; fixed (UnityEngine.Vector3* result = &HeapValue) { var typeId = Puerts.JsEnv.jsEnvs[jsEnvIdx].GetTypeId(typeof(UnityEngine.Vector3)); setValueApi.SetNativeObject(isolate, value, typeId, new IntPtr(result)); } } public static void InitBlittableCopy(Puerts.JsEnv jsEnv) { Puerts.StaticTranslate<UnityEngine.Vector3>.ReplaceDefault(StaticSetter, StaticGetter); int jsEnvIdx = jsEnv.Index; jsEnv.RegisterGeneralGetSet(typeof(UnityEngine.Vector3), (IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) => { return StaticGetter(jsEnvIdx, isolate, getValueApi, value, isByRef); }, (IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, object obj) => { StaticSetter(jsEnvIdx, isolate, setValueApi, value, (UnityEngine.Vector3)obj); }); } }
}
The text was updated successfully, but these errors were encountered:
e0926e3
zombieyang
No branches or pull requests
Heapvalue 和HeapValue
using System;
namespace PuertsStaticWrap
{
public static class UnityEngine_Vector3_Wrap
{
{ new Puerts.MethodKey {Name = "SlerpUnclamped", IsStatic = true}, F_SlerpUnclamped },
{ new Puerts.MethodKey {Name = "OrthoNormalize", IsStatic = true}, F_OrthoNormalize },
{ new Puerts.MethodKey {Name = "RotateTowards", IsStatic = true}, F_RotateTowards },
{ new Puerts.MethodKey {Name = "Lerp", IsStatic = true}, F_Lerp },
{ new Puerts.MethodKey {Name = "LerpUnclamped", IsStatic = true}, F_LerpUnclamped },
{ new Puerts.MethodKey {Name = "MoveTowards", IsStatic = true}, F_MoveTowards },
{ new Puerts.MethodKey {Name = "SmoothDamp", IsStatic = true}, F_SmoothDamp },
{ new Puerts.MethodKey {Name = "Set", IsStatic = false}, M_Set },
{ new Puerts.MethodKey {Name = "Scale", IsStatic = true}, F_Scale },
{ new Puerts.MethodKey {Name = "Scale", IsStatic = false}, M_Scale },
{ new Puerts.MethodKey {Name = "Cross", IsStatic = true}, F_Cross },
{ new Puerts.MethodKey {Name = "GetHashCode", IsStatic = false}, M_GetHashCode },
{ new Puerts.MethodKey {Name = "Equals", IsStatic = false}, M_Equals },
{ new Puerts.MethodKey {Name = "Reflect", IsStatic = true}, F_Reflect },
{ new Puerts.MethodKey {Name = "Normalize", IsStatic = true}, F_Normalize },
{ new Puerts.MethodKey {Name = "Normalize", IsStatic = false}, M_Normalize },
{ new Puerts.MethodKey {Name = "Dot", IsStatic = true}, F_Dot },
{ new Puerts.MethodKey {Name = "Project", IsStatic = true}, F_Project },
{ new Puerts.MethodKey {Name = "ProjectOnPlane", IsStatic = true}, F_ProjectOnPlane },
{ new Puerts.MethodKey {Name = "Angle", IsStatic = true}, F_Angle },
{ new Puerts.MethodKey {Name = "SignedAngle", IsStatic = true}, F_SignedAngle },
{ new Puerts.MethodKey {Name = "Distance", IsStatic = true}, F_Distance },
{ new Puerts.MethodKey {Name = "ClampMagnitude", IsStatic = true}, F_ClampMagnitude },
{ new Puerts.MethodKey {Name = "Magnitude", IsStatic = true}, F_Magnitude },
{ new Puerts.MethodKey {Name = "SqrMagnitude", IsStatic = true}, F_SqrMagnitude },
{ new Puerts.MethodKey {Name = "Min", IsStatic = true}, F_Min },
{ new Puerts.MethodKey {Name = "Max", IsStatic = true}, F_Max },
{ new Puerts.MethodKey {Name = "ToString", IsStatic = false}, M_ToString },
{ new Puerts.MethodKey {Name = "get_Item", IsStatic = false}, GetItem }
,
{ new Puerts.MethodKey {Name = "set_Item", IsStatic = false}, SetItem }
,
{ new Puerts.MethodKey {Name = "op_Addition", IsStatic = true}, O_op_Addition },
{ new Puerts.MethodKey {Name = "op_Subtraction", IsStatic = true}, O_op_Subtraction },
{ new Puerts.MethodKey {Name = "op_UnaryNegation", IsStatic = true}, O_op_UnaryNegation },
{ new Puerts.MethodKey {Name = "op_Multiply", IsStatic = true}, O_op_Multiply },
{ new Puerts.MethodKey {Name = "op_Division", IsStatic = true}, O_op_Division },
{ new Puerts.MethodKey {Name = "op_Equality", IsStatic = true}, O_op_Equality },
{ new Puerts.MethodKey {Name = "op_Inequality", IsStatic = true}, O_op_Inequality }
},
Properties = new System.Collections.Generic.Dictionary<string, Puerts.PropertyRegisterInfo>()
{
{"normalized", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_normalized, Setter = null} },
{"magnitude", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_magnitude, Setter = null} },
{"sqrMagnitude", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_sqrMagnitude, Setter = null} },
{"zero", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_zero, Setter = null} },
{"one", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_one, Setter = null} },
{"forward", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_forward, Setter = null} },
{"back", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_back, Setter = null} },
{"up", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_up, Setter = null} },
{"down", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_down, Setter = null} },
{"left", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_left, Setter = null} },
{"right", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_right, Setter = null} },
{"positiveInfinity", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_positiveInfinity, Setter = null} },
{"negativeInfinity", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_negativeInfinity, Setter = null} },
{"kEpsilon", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_kEpsilon, Setter = null} },
{"kEpsilonNormalSqrt", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_kEpsilonNormalSqrt, Setter = null} },
{"x", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_x, Setter = S_x} },
{"y", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_y, Setter = S_y} },
{"z", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_z, Setter = S_z} }
},
LazyMethods = new System.Collections.Generic.Dictionary<Puerts.MethodKey, Puerts.V8FunctionCallback>()
{
}
The text was updated successfully, but these errors were encountered: