static int _m_ApplyModifiedProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIPanel gen_to_be_invoked = (FairyGUI.UIPanel)translator.FastGetCSObj(L, 1); { bool _sortingOrderChanged = LuaAPI.lua_toboolean(L, 2); bool _fitScreenChanged = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.ApplyModifiedProperties(_sortingOrderChanged, _fitScreenChanged); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CenterOn(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Window gen_to_be_invoked = (FairyGUI.Window)translator.FastGetCSObj(L, 1); { FairyGUI.GRoot _r = (FairyGUI.GRoot)translator.GetObject(L, 2, typeof(FairyGUI.GRoot)); bool _restraint = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.CenterOn(_r, _restraint); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public bool __Gen_Delegate_Imp24(System.IntPtr p0, ref int p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); LuaAPI.lua_pushlightuserdata(L, p0); LuaAPI.xlua_pushinteger(L, p1); PCall(L, 2, 2, errFunc); p1 = LuaAPI.xlua_tointeger(L, errFunc + 2); bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_TurnInput(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GameInput __cl_gen_to_be_invoked = (xc.GameInput)translator.FastGetCSObj(L, 1); try { { bool hv = LuaAPI.lua_toboolean(L, 2); bool hSide = LuaAPI.lua_toboolean(L, 3); bool vSide = LuaAPI.lua_toboolean(L, 4); __cl_gen_to_be_invoked.TurnInput(hv, hSide, vSide); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetSortingOrder(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIPainter gen_to_be_invoked = (FairyGUI.UIPainter)translator.FastGetCSObj(L, 1); { int _value = LuaAPI.xlua_tointeger(L, 2); bool _apply = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetSortingOrder(_value, _apply); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Unload(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); { bool _unloadAllLoadedObjects = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.Unload( _unloadAllLoadedObjects); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Unload(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.NTexture gen_to_be_invoked = (FairyGUI.NTexture)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.Unload( ); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _destroyMaterials = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.Unload( _destroyMaterials); 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.NTexture.Unload!")); }
static int _m_FromComponents_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { bool _isNegative = LuaAPI.lua_toboolean(L, 1); short _exponent = (short)LuaAPI.xlua_tointeger(L, 2); ulong _significandHighBits = LuaAPI.lua_touint64(L, 3); ulong _significandLowBits = LuaAPI.lua_touint64(L, 4); MongoDB.Bson.Decimal128 gen_ret = MongoDB.Bson.Decimal128.FromComponents(_isNegative, _exponent, _significandHighBits, _significandLowBits); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetBoolValue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.AnimatorComponent gen_to_be_invoked = (DCET.Model.AnimatorComponent)translator.FastGetCSObj(L, 1); { string _name = LuaAPI.lua_tostring(L, 2); bool _state = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetBoolValue(_name, _state); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddMonoEnableOption(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SkillBaseComponent __cl_gen_to_be_invoked = (SkillBaseComponent)translator.FastGetCSObj(L, 1); try { { UnityEngine.MonoBehaviour kTarget = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); bool bEnable = LuaAPI.lua_toboolean(L, 3); float fDelayTime = (float)LuaAPI.lua_tonumber(L, 4); __cl_gen_to_be_invoked.AddMonoEnableOption(kTarget, bEnable, fDelayTime); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Evaluate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GearDisplay2 gen_to_be_invoked = (FairyGUI.GearDisplay2)translator.FastGetCSObj(L, 1); { bool _connected = LuaAPI.lua_toboolean(L, 2); bool gen_ret = gen_to_be_invoked.Evaluate(_connected); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetScrollPane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GScrollBar gen_to_be_invoked = (FairyGUI.GScrollBar)translator.FastGetCSObj(L, 1); { FairyGUI.ScrollPane _target = (FairyGUI.ScrollPane)translator.GetObject(L, 2, typeof(FairyGUI.ScrollPane)); bool _vertical = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetScrollPane(_target, _vertical); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_DiscardContents(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RenderTexture __cl_gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 1) { __cl_gen_to_be_invoked.DiscardContents( ); return(0); } if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { bool discardColor = LuaAPI.lua_toboolean(L, 2); bool discardDepth = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.DiscardContents(discardColor, discardDepth); 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.RenderTexture.DiscardContents!")); }
static int _m_BindAudio(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.AudioManager __cl_gen_to_be_invoked = (xc.AudioManager)translator.FastGetCSObj(L, 1); try { { UnityEngine.GameObject bind_node = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); string res_path = LuaAPI.lua_tostring(L, 3); bool is_loop = LuaAPI.lua_toboolean(L, 4); __cl_gen_to_be_invoked.BindAudio(bind_node, res_path, is_loop); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ClearConnections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphNode gen_to_be_invoked = (PF.GraphNode)translator.FastGetCSObj(L, 1); { bool _alsoReverse = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.ClearConnections( _alsoReverse); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Cull(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); { UnityEngine.Rect _clipRect; translator.Get(L, 2, out _clipRect); bool _validRect = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.Cull(_clipRect, _validRect); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetDirection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); { UnityEngine.UI.Slider.Direction _direction; translator.Get(L, 2, out _direction); bool _includeRectLayouts = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetDirection(_direction, _includeRectLayouts); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CreateExternalTexture_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { int _width = LuaAPI.xlua_tointeger(L, 1); UnityEngine.TextureFormat _format; translator.Get(L, 2, out _format); bool _mipmap = LuaAPI.lua_toboolean(L, 3); System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 4); var gen_ret = UnityEngine.Cubemap.CreateExternalTexture(_width, _format, _mipmap, _nativeTex); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetBoundsChangedFlag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GGroup gen_to_be_invoked = (FairyGUI.GGroup)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 _childSizeChanged = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.SetBoundsChangedFlag( _childSizeChanged); return(0); } if (gen_param_count == 1) { gen_to_be_invoked.SetBoundsChangedFlag( ); 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.GGroup.SetBoundsChangedFlag!")); }
static int _m_OnPause(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BehaviorDesigner.Runtime.Tasks.HotfixConditional gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.HotfixConditional)translator.FastGetCSObj(L, 1); { bool _paused = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.OnPause( _paused); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Start_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _deviceName = LuaAPI.lua_tostring(L, 1); bool _loop = LuaAPI.lua_toboolean(L, 2); int _lengthSec = LuaAPI.xlua_tointeger(L, 3); int _frequency = LuaAPI.xlua_tointeger(L, 4); UnityEngine.AudioClip gen_ret = UnityEngine.Microphone.Start(_deviceName, _loop, _lengthSec, _frequency); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetResolution_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)) { int width = LuaAPI.xlua_tointeger(L, 1); int height = LuaAPI.xlua_tointeger(L, 2); bool fullscreen = LuaAPI.lua_toboolean(L, 3); UnityEngine.Screen.SetResolution(width, height, fullscreen); return(0); } if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int width = LuaAPI.xlua_tointeger(L, 1); int height = LuaAPI.xlua_tointeger(L, 2); bool fullscreen = LuaAPI.lua_toboolean(L, 3); int preferredRefreshRate = LuaAPI.xlua_tointeger(L, 4); UnityEngine.Screen.SetResolution(width, height, fullscreen, preferredRefreshRate); 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.Screen.SetResolution!")); }
static int _m_SetActorScale_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { Actor actor = (Actor)translator.GetObject(L, 1, typeof(Actor)); float modelScale = (float)LuaAPI.lua_tonumber(L, 2); UnityEngine.Vector2 modelOffset; translator.Get(L, 3, out modelOffset); bool isPlayer = LuaAPI.lua_toboolean(L, 4); UIPreviewTexture previewTexture = (UIPreviewTexture)translator.GetObject(L, 5, typeof(UIPreviewTexture)); xc.ModelHelper.SetActorScale(actor, modelScale, modelOffset, isPlayer, previewTexture); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_AddFriend(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1); try { { xc.FriendType type; translator.Get(L, 2, out type); xc.FriendsInfo friend = (xc.FriendsInfo)translator.GetObject(L, 3, typeof(xc.FriendsInfo)); bool isInit = LuaAPI.lua_toboolean(L, 4); __cl_gen_to_be_invoked.AddFriend(type, friend, isInit); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetAssetBundleDependencies_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _assetBundleName = LuaAPI.lua_tostring(L, 1); bool _recursive = LuaAPI.lua_toboolean(L, 2); string[] gen_ret = DCETRuntime.AssetDatabaseHelper.GetAssetBundleDependencies( _assetBundleName, _recursive); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Enable(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.LongPressGesture gen_to_be_invoked = (FairyGUI.LongPressGesture)translator.FastGetCSObj(L, 1); { bool _value = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.Enable( _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_DestroyImmediate_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 1 && translator.Assignable <UnityEngine.Object>(L, 1)) { UnityEngine.Object obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); UnityEngine.Object.DestroyImmediate(obj); return(0); } if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Object>(L, 1) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { UnityEngine.Object obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); bool allowDestroyingAssets = LuaAPI.lua_toboolean(L, 2); UnityEngine.Object.DestroyImmediate(obj, allowDestroyingAssets); 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.Object.DestroyImmediate!")); }
static int _m_SetPaused(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GTweener gen_to_be_invoked = (FairyGUI.GTweener)translator.FastGetCSObj(L, 1); { bool _paused = LuaAPI.lua_toboolean(L, 2); FairyGUI.GTweener gen_ret = gen_to_be_invoked.SetPaused(_paused); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public bool __Gen_Delegate_Imp27(object p0, object p1, object p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.PushAny(L, p0); translator.PushAny(L, p1); translator.PushAny(L, p2); PCall(L, 3, 1, errFunc); bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_SetHumanoidBodyPartActive(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); { UnityEngine.AvatarMaskBodyPart _index; translator.Get(L, 2, out _index); bool _value = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetHumanoidBodyPartActive(_index, _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }