static int _m_GetVertexInGraphSpace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.TriangleMeshNode gen_to_be_invoked = (PF.TriangleMeshNode)translator.FastGetCSObj(L, 1); { int _i = LuaAPI.xlua_tointeger(L, 2); PF.Int3 gen_ret = gen_to_be_invoked.GetVertexInGraphSpace( _i); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_InverseTransform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphTransform gen_to_be_invoked = (PF.GraphTransform)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 _point; translator.Get(L, 2, out _point); UnityEngine.Vector3 gen_ret = gen_to_be_invoked.InverseTransform(_point); translator.PushUnityEngineVector3(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <PF.Int3>(L, 2)) { PF.Int3 _point; translator.Get(L, 2, out _point); PF.Int3 gen_ret = gen_to_be_invoked.InverseTransform(_point); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <PF.Int3[]>(L, 2)) { PF.Int3[] _arr = (PF.Int3[])translator.GetObject(L, 2, typeof(PF.Int3[])); gen_to_be_invoked.InverseTransform(_arr); return(0); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.Bounds>(L, 2)) { UnityEngine.Bounds _bounds; translator.Get(L, 2, out _bounds); UnityEngine.Bounds gen_ret = gen_to_be_invoked.InverseTransform(_bounds); translator.PushUnityEngineBounds(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.GraphTransform.InverseTransform!")); }
static int _m_ToInt3XZ_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { PF.Int2 _o; translator.Get(L, 1, out _o); PF.Int3 gen_ret = PF.Int2.ToInt3XZ(_o); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_DeserializeInt3(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphSerializationContext gen_to_be_invoked = (PF.GraphSerializationContext)translator.FastGetCSObj(L, 1); { PF.Int3 gen_ret = gen_to_be_invoked.DeserializeInt3( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 _position; translator.Get(L, 2, out _position); PF.Int3 gen_ret = new PF.Int3(_position); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int __x = LuaAPI.xlua_tointeger(L, 2); int __y = LuaAPI.xlua_tointeger(L, 3); int __z = LuaAPI.xlua_tointeger(L, 4); PF.Int3 gen_ret = new PF.Int3(__x, __y, __z); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(PF.Int3)); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.Int3 constructor!")); }
static int _m_Normal2D(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.Int3 gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { PF.Int3 gen_ret = gen_to_be_invoked.Normal2D( ); translator.Push(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }