static int _m_HasPropertyBlock(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1);



                {
                    bool gen_ret = gen_to_be_invoked.HasPropertyBlock(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 2
0
        static int _m_CanExecute(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                BehaviorDesigner.Runtime.Tasks.RandomSelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.RandomSelector)translator.FastGetCSObj(L, 1);



                {
                    bool gen_ret = gen_to_be_invoked.CanExecute(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 3
0
        public void __Gen_Delegate_Imp43(object p0, bool p1)
        {
#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);
            LuaAPI.lua_pushboolean(L, p1);

            PCall(L, 2, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Esempio n. 4
0
        static int _m_IsScrolling(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.EventSystems.PointerEventData gen_to_be_invoked = (UnityEngine.EventSystems.PointerEventData)translator.FastGetCSObj(L, 1);



                {
                    bool gen_ret = gen_to_be_invoked.IsScrolling(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 5
0
        static int _m_TryLoadAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1);



                {
                    bool gen_ret = gen_to_be_invoked.TryLoadAsset(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 6
0
        static int _m_Equals(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                MongoDB.Bson.BsonDouble gen_to_be_invoked = (MongoDB.Bson.BsonDouble)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonDouble>(L, 2))
                {
                    MongoDB.Bson.BsonDouble _rhs = (MongoDB.Bson.BsonDouble)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonDouble));

                    bool gen_ret = gen_to_be_invoked.Equals(_rhs);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <object>(L, 2))
                {
                    object _obj = translator.GetObject(L, 2, typeof(object));

                    bool gen_ret = gen_to_be_invoked.Equals(_obj);
                    LuaAPI.lua_pushboolean(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 MongoDB.Bson.BsonDouble.Equals!"));
        }
        int UnityEnginePlane_m_SameSide(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Plane gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);


            {
                UnityEngine.Vector3 _inPt0; translator.Get(L, 2, out _inPt0);
                UnityEngine.Vector3 _inPt1; translator.Get(L, 3, out _inPt1);

                bool gen_ret = gen_to_be_invoked.SameSide(_inPt0, _inPt1);
                LuaAPI.lua_pushboolean(L, gen_ret);


                translator.Update(L, 1, gen_to_be_invoked);


                return(1);
            }
        }
Esempio n. 8
0
        static int _m_Contains(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.GraphUpdateShape gen_to_be_invoked = (Pathfinding.GraphUpdateShape)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <PF.GraphNode>(L, 2))
                {
                    PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode));

                    bool gen_ret = gen_to_be_invoked.Contains(_node);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2))
                {
                    UnityEngine.Vector3 _point; translator.Get(L, 2, out _point);

                    bool gen_ret = gen_to_be_invoked.Contains(_point);
                    LuaAPI.lua_pushboolean(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 Pathfinding.GraphUpdateShape.Contains!"));
        }
        static int _m_Connected(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Warfare.WebSocketProxy.BaseWebsocket gen_to_be_invoked = (Warfare.WebSocketProxy.BaseWebsocket)translator.FastGetCSObj(L, 1);



                {
                    var gen_ret = gen_to_be_invoked.Connected(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 10
0
        static int _m_Remove_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);

                    bool __cl_gen_ret = EventDelegate.Remove(list, callback);
                    LuaAPI.lua_pushboolean(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));

                    bool __cl_gen_ret = EventDelegate.Remove(list, ev);
                    LuaAPI.lua_pushboolean(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.Remove!"));
        }
Esempio n. 11
0
        static int _m_Execute(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                EventDelegate __cl_gen_to_be_invoked = (EventDelegate)translator.FastGetCSObj(L, 1);



                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Execute(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 12
0
        static int _m_ReadBoolean(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                MongoDB.Bson.IO.JsonReader gen_to_be_invoked = (MongoDB.Bson.IO.JsonReader)translator.FastGetCSObj(L, 1);



                {
                    bool gen_ret = gen_to_be_invoked.ReadBoolean(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 13
0
        static int _m_MarkAsUsed_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1 && translator.Assignable <UnityEngine.CachedAssetBundle>(L, 1))
                {
                    UnityEngine.CachedAssetBundle _cachedBundle; translator.Get(L, 1, out _cachedBundle);

                    var gen_ret = UnityEngine.Caching.MarkAsUsed(_cachedBundle);
                    LuaAPI.lua_pushboolean(L, 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);

                    var gen_ret = UnityEngine.Caching.MarkAsUsed(_url, _hash);
                    LuaAPI.lua_pushboolean(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 UnityEngine.Caching.MarkAsUsed!"));
        }
Esempio n. 14
0
        static int _m_Print(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.TypingEffect gen_to_be_invoked = (FairyGUI.TypingEffect)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    bool gen_ret = gen_to_be_invoked.Print(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    float _interval = (float)LuaAPI.lua_tonumber(L, 2);

                    System.Collections.IEnumerator gen_ret = gen_to_be_invoked.Print(
                        _interval);
                    translator.PushAny(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.TypingEffect.Print!"));
        }
Esempio n. 15
0
        static int _m_IsTweening_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1 && translator.Assignable <object>(L, 1))
                {
                    object _target = translator.GetObject(L, 1, typeof(object));

                    bool gen_ret = FairyGUI.GTween.IsTweening(_target);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <object>(L, 1) && translator.Assignable <FairyGUI.TweenPropType>(L, 2))
                {
                    object _target = translator.GetObject(L, 1, typeof(object));
                    FairyGUI.TweenPropType _propType; translator.Get(L, 2, out _propType);

                    bool gen_ret = FairyGUI.GTween.IsTweening(_target, _propType);
                    LuaAPI.lua_pushboolean(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.GTween.IsTweening!"));
        }
Esempio n. 16
0
        static int _m_BroadcastCall(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.EventListener gen_to_be_invoked = (FairyGUI.EventListener)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    bool gen_ret = gen_to_be_invoked.BroadcastCall(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <object>(L, 2))
                {
                    object _data = translator.GetObject(L, 2, typeof(object));

                    bool gen_ret = gen_to_be_invoked.BroadcastCall(
                        _data);
                    LuaAPI.lua_pushboolean(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.EventListener.BroadcastCall!"));
        }
Esempio n. 17
0
        static int _m_IsAlwaysNormalized(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.Text.Encoding gen_to_be_invoked = (System.Text.Encoding)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    bool gen_ret = gen_to_be_invoked.IsAlwaysNormalized(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Text.NormalizationForm>(L, 2))
                {
                    System.Text.NormalizationForm _form; translator.Get(L, 2, out _form);

                    bool gen_ret = gen_to_be_invoked.IsAlwaysNormalized(
                        _form);
                    LuaAPI.lua_pushboolean(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 System.Text.Encoding.IsAlwaysNormalized!"));
        }
        static int _m_IsInvoking(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    bool gen_ret = gen_to_be_invoked.IsInvoking(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _methodName = LuaAPI.lua_tostring(L, 2);

                    bool gen_ret = gen_to_be_invoked.IsInvoking(
                        _methodName);
                    LuaAPI.lua_pushboolean(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 UnityEngine.MonoBehaviour.IsInvoking!"));
        }
        int UnityEngineRect_m_Overlaps(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Rect gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);

            if (gen_param_count == 2 && translator.Assignable <UnityEngine.Rect>(L, 2))
            {
                UnityEngine.Rect _other; translator.Get(L, 2, out _other);

                bool gen_ret = gen_to_be_invoked.Overlaps(_other);
                LuaAPI.lua_pushboolean(L, gen_ret);


                translator.Update(L, 1, gen_to_be_invoked);


                return(1);
            }
            if (gen_param_count == 3 && translator.Assignable <UnityEngine.Rect>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
            {
                UnityEngine.Rect _other; translator.Get(L, 2, out _other);
                bool             _allowInverse = LuaAPI.lua_toboolean(L, 3);

                bool gen_ret = gen_to_be_invoked.Overlaps(_other, _allowInverse);
                LuaAPI.lua_pushboolean(L, gen_ret);


                translator.Update(L, 1, gen_to_be_invoked);


                return(1);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Overlaps!"));
        }
Esempio n. 20
0
        static int _m_Remove(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.Dictionary <ulong, xc.GoodsEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <ulong, xc.GoodsEquip>)translator.FastGetCSObj(L, 1);


            try {
                {
                    ulong key = LuaAPI.lua_touint64(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Remove(key);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 21
0
        static int _m_ContainsValue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.Dictionary <ulong, xc.GoodsEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <ulong, xc.GoodsEquip>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.GoodsEquip value = (xc.GoodsEquip)translator.GetObject(L, 2, typeof(xc.GoodsEquip));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.ContainsValue(value);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_GetMouseButtonDown(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.EventSystems.BaseInput __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseInput)translator.FastGetCSObj(L, 1);


            try {
                {
                    int button = LuaAPI.xlua_tointeger(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.GetMouseButtonDown(button);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 23
0
        static int _m_Equals(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            object __cl_gen_to_be_invoked = translator.FastGetCSObj(L, 1);


            try {
                {
                    object obj = translator.GetObject(L, 2, typeof(object));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Equals(obj);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 24
0
        static int _m_ClearCache(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            KSFramework.LuaModule __cl_gen_to_be_invoked = (KSFramework.LuaModule)translator.FastGetCSObj(L, 1);


            try {
                {
                    string uiLuaPath = LuaAPI.lua_tostring(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.ClearCache(uiLuaPath);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 25
0
        static int _m_IsLogTypeAllowed(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.ILogger __cl_gen_to_be_invoked = (UnityEngine.ILogger)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.LogType logType; translator.Get(L, 2, out logType);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsLogTypeAllowed(logType);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 26
0
        static int _m_UnsubCustomEventListener(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Maria.EventDispatcher __cl_gen_to_be_invoked = (Maria.EventDispatcher)translator.FastGetCSObj(L, 1);


            try {
                {
                    Maria.EventListenerCustom listener = (Maria.EventListenerCustom)translator.GetObject(L, 2, typeof(Maria.EventListenerCustom));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.UnsubCustomEventListener(listener);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 27
0
        static int _m_FindCullAndClipWorldRect_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.Collections.Generic.List <UnityEngine.UI.RectMask2D> _rectMaskParents = (System.Collections.Generic.List <UnityEngine.UI.RectMask2D>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <UnityEngine.UI.RectMask2D>));
                    bool _validRect;

                    var gen_ret = UnityEngine.UI.Clipping.FindCullAndClipWorldRect(_rectMaskParents, out _validRect);
                    translator.Push(L, gen_ret);
                    LuaAPI.lua_pushboolean(L, _validRect);



                    return(2);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_HasGetReward(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysPreviewManager __cl_gen_to_be_invoked = (xc.SysPreviewManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint sysId = LuaAPI.xlua_touint(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.HasGetReward(sysId);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_SimpleMove(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.CharacterController __cl_gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Vector3 speed; translator.Get(L, 2, out speed);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.SimpleMove(speed);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 30
0
        static int _m_Remove(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.List <object> __cl_gen_to_be_invoked = (System.Collections.Generic.List <object>)translator.FastGetCSObj(L, 1);


            try {
                {
                    object item = translator.GetObject(L, 2, typeof(object));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Remove(item);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }