int __CreateInstanceUnityEnginePlane(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3)) { UnityEngine.Vector3 _inNormal; translator.Get(L, 2, out _inNormal); UnityEngine.Vector3 _inPoint; translator.Get(L, 3, out _inPoint); UnityEngine.Plane gen_ret = new UnityEngine.Plane(_inNormal, _inPoint); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 _inNormal; translator.Get(L, 2, out _inNormal); float _d = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Plane gen_ret = new UnityEngine.Plane(_inNormal, _d); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3) && translator.Assignable <UnityEngine.Vector3>(L, 4)) { UnityEngine.Vector3 _a; translator.Get(L, 2, out _a); UnityEngine.Vector3 _b; translator.Get(L, 3, out _b); UnityEngine.Vector3 _c; translator.Get(L, 4, out _c); UnityEngine.Plane gen_ret = new UnityEngine.Plane(_a, _b, _c); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 1) { translator.Push(L, default(UnityEngine.Plane)); return(1); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Plane constructor!")); }
static int _m_Assert_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 1 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) { bool condition = LuaAPI.lua_toboolean(L, 1); UnityEngine.Debug.Assert(condition); return(0); } if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && translator.Assignable <UnityEngine.Object>(L, 2)) { bool condition = LuaAPI.lua_toboolean(L, 1); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); UnityEngine.Debug.Assert(condition, context); return(0); } if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && translator.Assignable <object>(L, 2)) { bool condition = LuaAPI.lua_toboolean(L, 1); object message = translator.GetObject(L, 2, typeof(object)); UnityEngine.Debug.Assert(condition, message); return(0); } if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { bool condition = LuaAPI.lua_toboolean(L, 1); string message = LuaAPI.lua_tostring(L, 2); UnityEngine.Debug.Assert(condition, message); return(0); } if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && translator.Assignable <object>(L, 2) && translator.Assignable <UnityEngine.Object>(L, 3)) { bool condition = LuaAPI.lua_toboolean(L, 1); object message = translator.GetObject(L, 2, typeof(object)); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); UnityEngine.Debug.Assert(condition, message, context); return(0); } if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Object>(L, 3)) { bool condition = LuaAPI.lua_toboolean(L, 1); string message = LuaAPI.lua_tostring(L, 2); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); UnityEngine.Debug.Assert(condition, message, context); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.Assert!")); }
static int _m_DrawLine_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Debug.DrawLine(start, end); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Color color; translator.Get(L, 3, out color); UnityEngine.Debug.DrawLine(start, end, color); return(0); } if (__gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Color color; translator.Get(L, 3, out color); float duration = (float)LuaAPI.lua_tonumber(L, 4); UnityEngine.Debug.DrawLine(start, end, color, duration); return(0); } if (__gen_param_count == 5 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Color color; translator.Get(L, 3, out color); float duration = (float)LuaAPI.lua_tonumber(L, 4); bool depthTest = LuaAPI.lua_toboolean(L, 5); UnityEngine.Debug.DrawLine(start, end, color, duration, depthTest); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.DrawLine!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3)) { UnityEngine.Vector3 _inNormal; translator.Get(L, 2, out _inNormal); UnityEngine.Vector3 _inPoint; translator.Get(L, 3, out _inPoint); var gen_ret = new UnityEngine.Plane(_inNormal, _inPoint); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 _inNormal; translator.Get(L, 2, out _inNormal); float _d = (float)LuaAPI.lua_tonumber(L, 3); var gen_ret = new UnityEngine.Plane(_inNormal, _d); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3) && translator.Assignable <UnityEngine.Vector3>(L, 4)) { UnityEngine.Vector3 _a; translator.Get(L, 2, out _a); UnityEngine.Vector3 _b; translator.Get(L, 3, out _b); UnityEngine.Vector3 _c; translator.Get(L, 4, out _c); var gen_ret = new UnityEngine.Plane(_a, _b, _c); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(UnityEngine.Plane)); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Plane constructor!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string strName = LuaAPI.lua_tostring(L, 2); string strPath = LuaAPI.lua_tostring(L, 3); xc.DBBaptizeGroove __cl_gen_ret = new xc.DBBaptizeGroove(strName, strPath); translator.Push(L, __cl_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 xc.DBBaptizeGroove constructor!")); }
static int __DivMeta(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (translator.Assignable <UnityEngine.Vector2>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { UnityEngine.Vector2 leftside; translator.Get(L, 1, out leftside); float rightside = (float)LuaAPI.lua_tonumber(L, 2); translator.PushUnityEngineVector2(L, leftside / rightside); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Vector2!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 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)) { uint _bottom = LuaAPI.xlua_touint(L, 2); uint _top = LuaAPI.xlua_touint(L, 3); int _area = LuaAPI.xlua_tointeger(L, 4); Pathfinding.Voxels.LinkedVoxelSpan gen_ret = new Pathfinding.Voxels.LinkedVoxelSpan(_bottom, _top, _area); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { uint _bottom = LuaAPI.xlua_touint(L, 2); uint _top = LuaAPI.xlua_touint(L, 3); int _area = LuaAPI.xlua_tointeger(L, 4); int _next = LuaAPI.xlua_tointeger(L, 5); Pathfinding.Voxels.LinkedVoxelSpan gen_ret = new Pathfinding.Voxels.LinkedVoxelSpan(_bottom, _top, _area, _next); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(Pathfinding.Voxels.LinkedVoxelSpan)); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.Voxels.LinkedVoxelSpan constructor!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { EventDelegate __cl_gen_ret = new EventDelegate(); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <EventDelegate.Callback>(L, 2)) { EventDelegate.Callback call = translator.GetDelegate <EventDelegate.Callback>(L, 2); EventDelegate __cl_gen_ret = new EventDelegate(call); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <UnityEngine.MonoBehaviour>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { UnityEngine.MonoBehaviour target = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); string methodName = LuaAPI.lua_tostring(L, 3); EventDelegate __cl_gen_ret = new EventDelegate(target, methodName); translator.Push(L, __cl_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 EventDelegate constructor!")); }
static int _m_RemoveChildren(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GTreeNode gen_to_be_invoked = (FairyGUI.GTreeNode)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _beginIndex = LuaAPI.xlua_tointeger(L, 2); int _endIndex = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.RemoveChildren(_beginIndex, _endIndex); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _beginIndex = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.RemoveChildren(_beginIndex); return(0); } if (gen_param_count == 1) { gen_to_be_invoked.RemoveChildren( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GTreeNode.RemoveChildren!")); }
static int _m_AddSelection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.TreeView gen_to_be_invoked = (FairyGUI.TreeView)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <FairyGUI.TreeNode>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { FairyGUI.TreeNode _node = (FairyGUI.TreeNode)translator.GetObject(L, 2, typeof(FairyGUI.TreeNode)); bool _scrollItToView = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.AddSelection(_node, _scrollItToView); return(0); } if (gen_param_count == 2 && translator.Assignable <FairyGUI.TreeNode>(L, 2)) { FairyGUI.TreeNode _node = (FairyGUI.TreeNode)translator.GetObject(L, 2, typeof(FairyGUI.TreeNode)); gen_to_be_invoked.AddSelection(_node); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.TreeView.AddSelection!")); }
static int _m_Add_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate.Callback>(L, 2)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate.Callback callback = translator.GetDelegate <EventDelegate.Callback>(L, 2); EventDelegate __cl_gen_ret = EventDelegate.Add(list, callback); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate>(L, 2)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate ev = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); EventDelegate.Add(list, ev); return(0); } if (__gen_param_count == 3 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate.Callback>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate.Callback callback = translator.GetDelegate <EventDelegate.Callback>(L, 2); bool oneShot = LuaAPI.lua_toboolean(L, 3); EventDelegate __cl_gen_ret = EventDelegate.Add(list, callback, oneShot); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate ev = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); bool oneShot = LuaAPI.lua_toboolean(L, 3); EventDelegate.Add(list, ev, oneShot); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to EventDelegate.Add!")); }
static int _m_SafeDoString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaManager gen_to_be_invoked = (XLuaManager)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string _scriptContent = LuaAPI.lua_tostring(L, 2); string _chunkName = LuaAPI.lua_tostring(L, 3); gen_to_be_invoked.SafeDoString(_scriptContent, _chunkName); return(0); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _scriptContent = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SafeDoString(_scriptContent); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to XLuaManager.SafeDoString!")); }
static int _m_Euler_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { float x = (float)LuaAPI.lua_tonumber(L, 1); float y = (float)LuaAPI.lua_tonumber(L, 2); float z = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Quaternion __cl_gen_ret = UnityEngine.Quaternion.Euler(x, y, z); translator.PushUnityEngineQuaternion(L, __cl_gen_ret); return(1); } if (__gen_param_count == 1 && translator.Assignable <UnityEngine.Vector3>(L, 1)) { UnityEngine.Vector3 euler; translator.Get(L, 1, out euler); UnityEngine.Quaternion __cl_gen_ret = UnityEngine.Quaternion.Euler(euler); translator.PushUnityEngineQuaternion(L, __cl_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 UnityEngine.Quaternion.Euler!")); }
public static int __CSIndexer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (translator.Assignable <UnityEngine.Quaternion>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { UnityEngine.Quaternion __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked); int index = LuaAPI.xlua_tointeger(L, 2); LuaAPI.lua_pushboolean(L, true); LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked[index]); return(2); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } LuaAPI.lua_pushboolean(L, false); return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { uint u32_0 = LuaAPI.xlua_touint(L, 2); uint u32_1 = LuaAPI.xlua_touint(L, 3); uint u32_2 = LuaAPI.xlua_touint(L, 4); uint u32_3 = LuaAPI.xlua_touint(L, 5); UnityEngine.Hash128 __cl_gen_ret = new UnityEngine.Hash128(u32_0, u32_1, u32_2, u32_3); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(UnityEngine.Hash128)); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Hash128 constructor!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _hasChild = LuaAPI.lua_toboolean(L, 2); FairyGUI.GTreeNode gen_ret = new FairyGUI.GTreeNode(_hasChild); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { bool _hasChild = LuaAPI.lua_toboolean(L, 2); string _resURL = LuaAPI.lua_tostring(L, 3); FairyGUI.GTreeNode gen_ret = new FairyGUI.GTreeNode(_hasChild, _resURL); translator.Push(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 FairyGUI.GTreeNode constructor!")); }
public static int __NewIndexer(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (translator.Assignable <UnityEngine.Vector2>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector2 __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked); int key = LuaAPI.xlua_tointeger(L, 2); __cl_gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); LuaAPI.lua_pushboolean(L, true); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } LuaAPI.lua_pushboolean(L, false); return(1); }
static int _m_LoadAsyn(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) { int type = LuaAPI.xlua_tointeger(L, 2); int loadPriority = LuaAPI.xlua_tointeger(L, 3); string filename = LuaAPI.lua_tostring(L, 4); int life = LuaAPI.xlua_tointeger(L, 5); JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 6, typeof(JW.Framework.Asset.IAssetLoadCallback)); int cnt = LuaAPI.xlua_tointeger(L, 7); __cl_gen_to_be_invoked.LoadAsyn(type, loadPriority, filename, life, callback, cnt); return(0); } if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 6)) { int type = LuaAPI.xlua_tointeger(L, 2); int loadPriority = LuaAPI.xlua_tointeger(L, 3); string filename = LuaAPI.lua_tostring(L, 4); int life = LuaAPI.xlua_tointeger(L, 5); JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 6, typeof(JW.Framework.Asset.IAssetLoadCallback)); __cl_gen_to_be_invoked.LoadAsyn(type, loadPriority, filename, life, callback); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to JW.Framework.Asset.AssetService.LoadAsyn!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { float x = (float)LuaAPI.lua_tonumber(L, 2); float y = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Vector2 __cl_gen_ret = new UnityEngine.Vector2(x, y); translator.PushUnityEngineVector2(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.PushUnityEngineVector2(L, default(UnityEngine.Vector2)); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2 constructor!")); }
static int _m_CancelAsyn(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 2, typeof(JW.Framework.Asset.IAssetLoadCallback)); string assetName = LuaAPI.lua_tostring(L, 3); __cl_gen_to_be_invoked.CancelAsyn(callback, assetName); return(0); } if (__gen_param_count == 2 && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 2)) { JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 2, typeof(JW.Framework.Asset.IAssetLoadCallback)); __cl_gen_to_be_invoked.CancelAsyn(callback); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to JW.Framework.Asset.AssetService.CancelAsyn!")); }
static int _m_SetLODSettings_xlua_st_(RealStatePtr L) { try { int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { float _lodBias = (float)LuaAPI.lua_tonumber(L, 1); int _maximumLODLevel = LuaAPI.xlua_tointeger(L, 2); bool _setDirty = LuaAPI.lua_toboolean(L, 3); UnityEngine.QualitySettings.SetLODSettings(_lodBias, _maximumLODLevel, _setDirty); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { float _lodBias = (float)LuaAPI.lua_tonumber(L, 1); int _maximumLODLevel = LuaAPI.xlua_tointeger(L, 2); UnityEngine.QualitySettings.SetLODSettings(_lodBias, _maximumLODLevel); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.QualitySettings.SetLODSettings!")); }
static int _m_LoadPrimitiveAsset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string filename = LuaAPI.lua_tostring(L, 2); int lifeType = LuaAPI.xlua_tointeger(L, 3); JW.Framework.Asset.BaseAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadPrimitiveAsset(filename, lifeType); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string filename = LuaAPI.lua_tostring(L, 2); JW.Framework.Asset.BaseAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadPrimitiveAsset(filename); translator.Push(L, __cl_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 JW.Framework.Asset.AssetService.LoadPrimitiveAsset!")); }
static int _m_SetQualityLevel_xlua_st_(RealStatePtr L) { try { int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) { int _index = LuaAPI.xlua_tointeger(L, 1); UnityEngine.QualitySettings.SetQualityLevel(_index); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { int _index = LuaAPI.xlua_tointeger(L, 1); bool _applyExpensiveChanges = LuaAPI.lua_toboolean(L, 2); UnityEngine.QualitySettings.SetQualityLevel(_index, _applyExpensiveChanges); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.QualitySettings.SetQualityLevel!")); }
static int _m_GetAudioClip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WWW __cl_gen_to_be_invoked = (UnityEngine.WWW)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool threeD = LuaAPI.lua_toboolean(L, 2); UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClip(threeD); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { bool threeD = LuaAPI.lua_toboolean(L, 2); bool stream = LuaAPI.lua_toboolean(L, 3); UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClip(threeD, stream); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 4 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.AudioType>(L, 4)) { bool threeD = LuaAPI.lua_toboolean(L, 2); bool stream = LuaAPI.lua_toboolean(L, 3); UnityEngine.AudioType audioType; translator.Get(L, 4, out audioType); UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClip(threeD, stream, audioType); translator.Push(L, __cl_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 UnityEngine.WWW.GetAudioClip!")); }
static int _m_GetCacheComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.PLink.PrefabLink __cl_gen_to_be_invoked = (JW.PLink.PrefabLink)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Component __cl_gen_ret = __cl_gen_to_be_invoked.GetCacheComponent(index); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { int index = LuaAPI.xlua_tointeger(L, 2); string typeName = LuaAPI.lua_tostring(L, 3); UnityEngine.Component __cl_gen_ret = __cl_gen_to_be_invoked.GetCacheComponent(index, typeName); translator.Push(L, __cl_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 JW.PLink.PrefabLink.GetCacheComponent!")); }
static int _m_LoadFromCacheOrDownload_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); int version = LuaAPI.xlua_tointeger(L, 2); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, version); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string url = LuaAPI.lua_tostring(L, 1); int version = LuaAPI.xlua_tointeger(L, 2); uint crc = LuaAPI.xlua_touint(L, 3); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, version, crc); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Hash128>(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); UnityEngine.Hash128 hash; translator.Get(L, 2, out hash); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, hash); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Hash128>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string url = LuaAPI.lua_tostring(L, 1); UnityEngine.Hash128 hash; translator.Get(L, 2, out hash); uint crc = LuaAPI.xlua_touint(L, 3); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, hash, crc); translator.Push(L, __cl_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 UnityEngine.WWW.LoadFromCacheOrDownload!")); }
static int _m_LogAssertionFormat_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count >= 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable <object>(L, 2))) { string format = LuaAPI.lua_tostring(L, 1); object[] args = translator.GetParams <object>(L, 2); UnityEngine.Debug.LogAssertionFormat(format, args); return(0); } if (__gen_param_count >= 2 && translator.Assignable <UnityEngine.Object>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable <object>(L, 3))) { UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); string format = LuaAPI.lua_tostring(L, 2); object[] args = translator.GetParams <object>(L, 3); UnityEngine.Debug.LogAssertionFormat(context, format, args); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogAssertionFormat!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string url = LuaAPI.lua_tostring(L, 2); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.WWWForm>(L, 3)) { string url = LuaAPI.lua_tostring(L, 2); UnityEngine.WWWForm form = (UnityEngine.WWWForm)translator.GetObject(L, 3, typeof(UnityEngine.WWWForm)); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url, form); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string url = LuaAPI.lua_tostring(L, 2); byte[] postData = LuaAPI.lua_tobytes(L, 3); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url, postData); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Collections.Generic.Dictionary <string, string> >(L, 4)) { string url = LuaAPI.lua_tostring(L, 2); byte[] postData = LuaAPI.lua_tobytes(L, 3); System.Collections.Generic.Dictionary <string, string> headers = (System.Collections.Generic.Dictionary <string, string>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary <string, string>)); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url, postData, headers); translator.Push(L, __cl_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 UnityEngine.WWW constructor!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 pos; translator.Get(L, 2, out pos); float rad = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.BoundingSphere __cl_gen_ret = new UnityEngine.BoundingSphere(pos, rad); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.Vector4>(L, 2)) { UnityEngine.Vector4 packedSphere; translator.Get(L, 2, out packedSphere); UnityEngine.BoundingSphere __cl_gen_ret = new UnityEngine.BoundingSphere(packedSphere); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(UnityEngine.BoundingSphere)); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoundingSphere constructor!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { float r = (float)LuaAPI.lua_tonumber(L, 2); float g = (float)LuaAPI.lua_tonumber(L, 3); float b = (float)LuaAPI.lua_tonumber(L, 4); float a = (float)LuaAPI.lua_tonumber(L, 5); UnityEngine.Color __cl_gen_ret = new UnityEngine.Color(r, g, b, a); translator.PushUnityEngineColor(L, __cl_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)) { float r = (float)LuaAPI.lua_tonumber(L, 2); float g = (float)LuaAPI.lua_tonumber(L, 3); float b = (float)LuaAPI.lua_tonumber(L, 4); UnityEngine.Color __cl_gen_ret = new UnityEngine.Color(r, g, b); translator.PushUnityEngineColor(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.PushUnityEngineColor(L, default(UnityEngine.Color)); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color constructor!")); }