Ejemplo n.º 1
0
        static int _m_ClampMagnitude_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityEngine.Vector2 vector; translator.Get(L, 1, out vector);
                    float maxLength = (float)LuaAPI.lua_tonumber(L, 2);

                    UnityEngine.Vector2 __cl_gen_ret = UnityEngine.Vector2.ClampMagnitude(vector, maxLength);
                    translator.PushUnityEngineVector2(L, __cl_gen_ret);



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



                {
                    float _angle = (float)LuaAPI.lua_tonumber(L, 1);
                    UnityEngine.Vector3 _axis; translator.Get(L, 2, out _axis);

                    UnityEngine.Quaternion gen_ret = UnityEngine.Quaternion.AngleAxis(_angle, _axis);
                    translator.PushUnityEngineQuaternion(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        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 gen_ret = UnityEngine.Quaternion.Euler(_x, _y, _z);
                    translator.PushUnityEngineQuaternion(L, 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 gen_ret = UnityEngine.Quaternion.Euler(_euler);
                    translator.PushUnityEngineQuaternion(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.Quaternion.Euler!"));
        }
        static int _m_GetLights_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityEngine.LightType type; translator.Get(L, 1, out type);
                    int layer = LuaAPI.xlua_tointeger(L, 2);

                    UnityEngine.Light[] __cl_gen_ret = UnityEngine.Light.GetLights(type, layer);
                    translator.Push(L, __cl_gen_ret);



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



            try {
                {
                    UnityEngine.Vector3 center; translator.Get(L, 1, out center);
                    float radius = (float)LuaAPI.lua_tonumber(L, 2);

                    UnityEngine.Vector3 __cl_gen_ret = InstanceHelper.FindAvailableWalkablePos(center, radius);
                    translator.PushUnityEngineVector3(L, __cl_gen_ret);



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



                {
                    UnityEngine.Rendering.VertexAttributeFormat _format; translator.Get(L, 1, out _format);
                    int _dimension = LuaAPI.xlua_tointeger(L, 2);

                    bool gen_ret = UnityEngine.SystemInfo.SupportsVertexAttributeFormat(_format, _dimension);
                    LuaAPI.lua_pushboolean(L, gen_ret);



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



                {
                    UnityEngine.Quaternion _q; translator.Get(L, 1, out _q);

                    UnityEngine.Quaternion gen_ret = UnityEngine.Quaternion.Normalize(
                        _q);
                    translator.PushUnityEngineQuaternion(L, gen_ret);



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


            UnityEngine.Vector4 __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);


            try {
                {
                    __cl_gen_to_be_invoked.Normalize(  );


                    translator.UpdateUnityEngineVector4(L, 1, __cl_gen_to_be_invoked);


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


                SimpleJson.JsonObject gen_to_be_invoked = (SimpleJson.JsonObject)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

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

                    bool gen_ret = gen_to_be_invoked.Remove(_key);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.KeyValuePair <string, object> >(L, 2))
                {
                    System.Collections.Generic.KeyValuePair <string, object> _item; translator.Get(L, 2, out _item);

                    bool gen_ret = gen_to_be_invoked.Remove(_item);
                    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 SimpleJson.JsonObject.Remove!"));
        }
        static int _m_EmitFrameMetaData_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.Guid  _id; translator.Get(L, 1, out _id);
                    int          _tag  = LuaAPI.xlua_tointeger(L, 2);
                    System.Array _data = (System.Array)translator.GetObject(L, 3, typeof(System.Array));

                    UnityEngine.Profiling.Profiler.EmitFrameMetaData(_id, _tag, _data);



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


            UnityEngine.EventSystems.RaycastResult __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);


            try {
                {
                    __cl_gen_to_be_invoked.Clear(  );


                    translator.Update(L, 1, __cl_gen_to_be_invoked);


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


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


            try {
                {
                    UnityEngine.UI.CanvasUpdate executing; translator.Get(L, 2, out executing);

                    __cl_gen_to_be_invoked.Rebuild(executing);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Ejemplo n.º 13
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_CreateScene_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))
                {
                    string _sceneName = LuaAPI.lua_tostring(L, 1);

                    UnityEngine.SceneManagement.Scene gen_ret = UnityEngine.SceneManagement.SceneManager.CreateScene(_sceneName);
                    translator.Push(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.SceneManagement.CreateSceneParameters>(L, 2))
                {
                    string _sceneName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.SceneManagement.CreateSceneParameters _parameters; translator.Get(L, 2, out _parameters);

                    UnityEngine.SceneManagement.Scene gen_ret = UnityEngine.SceneManagement.SceneManager.CreateScene(_sceneName, _parameters);
                    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 UnityEngine.SceneManagement.SceneManager.CreateScene!"));
        }
Ejemplo n.º 15
0
        static int _m_GetTween_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));

                    FairyGUI.GTweener gen_ret = FairyGUI.GTween.GetTween(_target);
                    translator.Push(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);

                    FairyGUI.GTweener gen_ret = FairyGUI.GTween.GetTween(_target, _propType);
                    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.GTween.GetTween!"));
        }
Ejemplo n.º 16
0
        static int _m_OverrideStatus(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    BehaviorDesigner.Runtime.Tasks.TaskStatus gen_ret = gen_to_be_invoked.OverrideStatus(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <BehaviorDesigner.Runtime.Tasks.TaskStatus>(L, 2))
                {
                    BehaviorDesigner.Runtime.Tasks.TaskStatus _status; translator.Get(L, 2, out _status);

                    BehaviorDesigner.Runtime.Tasks.TaskStatus gen_ret = gen_to_be_invoked.OverrideStatus(
                        _status);
                    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 BehaviorDesigner.Runtime.Tasks.ConditionalEvaluator.OverrideStatus!"));
        }
Ejemplo n.º 17
0
        static int _m_FlushAsync(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.IO.Stream gen_to_be_invoked = (System.IO.Stream)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    System.Threading.Tasks.Task gen_ret = gen_to_be_invoked.FlushAsync(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Threading.CancellationToken>(L, 2))
                {
                    System.Threading.CancellationToken _cancellationToken; translator.Get(L, 2, out _cancellationToken);

                    System.Threading.Tasks.Task gen_ret = gen_to_be_invoked.FlushAsync(
                        _cancellationToken);
                    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 System.IO.Stream.FlushAsync!"));
        }
        static int _m_Emit(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.ParticleSystem __cl_gen_to_be_invoked = (UnityEngine.ParticleSystem)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 count = LuaAPI.xlua_tointeger(L, 2);

                    __cl_gen_to_be_invoked.Emit(count);



                    return(0);
                }
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.ParticleSystem.EmitParams>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.ParticleSystem.EmitParams emitParams; translator.Get(L, 2, out emitParams);
                    int count = LuaAPI.xlua_tointeger(L, 3);

                    __cl_gen_to_be_invoked.Emit(emitParams, count);



                    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.ParticleSystem.Emit!"));
        }
Ejemplo n.º 19
0
        static int _m_Flip(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.Flip(  );


                    translator.Update(L, 1, gen_to_be_invoked);


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



            try {
                {
                    UnityEngine.Vector2   point; translator.Get(L, 1, out point);
                    UnityEngine.Transform elementTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
                    UnityEngine.Canvas    canvas           = (UnityEngine.Canvas)translator.GetObject(L, 3, typeof(UnityEngine.Canvas));

                    UnityEngine.Vector2 __cl_gen_ret = UnityEngine.RectTransformUtility.PixelAdjustPoint(point, elementTransform, canvas);
                    translator.PushUnityEngineVector2(L, __cl_gen_ret);



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


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



                {
                    UnityEngine.Rendering.LightEvent _evt; translator.Get(L, 2, out _evt);

                    gen_to_be_invoked.RemoveCommandBuffers(_evt);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Ejemplo n.º 22
0
        static int _m_GetObjectData(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 {
                {
                    System.Runtime.Serialization.SerializationInfo info = (System.Runtime.Serialization.SerializationInfo)translator.GetObject(L, 2, typeof(System.Runtime.Serialization.SerializationInfo));
                    System.Runtime.Serialization.StreamingContext  context; translator.Get(L, 3, out context);

                    __cl_gen_to_be_invoked.GetObjectData(info, context);



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


                FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1);



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

                    __cl_gen_to_be_invoked.Translate(mov);



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


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



                {
                    MongoDB.Bson.BsonElement _element; translator.Get(L, 2, out _element);

                    gen_to_be_invoked.RemoveElement(_element);



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


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


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

                    UnityEngine.Vector3 __cl_gen_ret = __cl_gen_to_be_invoked.ClosestPointOnBounds(position);
                    translator.PushUnityEngineVector3(L, __cl_gen_ret);



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


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


            try {
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Events.UnityEventCallState state; translator.Get(L, 3, out state);

                    __cl_gen_to_be_invoked.SetPersistentListenerState(index, state);



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


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



                {
                    MongoDB.Bson.BsonType _value; translator.Get(L, 2, out _value);

                    gen_to_be_invoked.WriteBsonType(_value);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Ejemplo n.º 28
0
        static int _m_GetFirstOpenSysByPos(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    xc.DBSysConfig.ESysBtnPos pos; translator.Get(L, 2, out pos);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.GetFirstOpenSysByPos(pos);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



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


                FairyGUI.Utils.XMLList.Enumerator gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);



                {
                    gen_to_be_invoked.Reset(  );


                    translator.Update(L, 1, gen_to_be_invoked);


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


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


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

                    UnityEngine.UI.Selectable __cl_gen_ret = __cl_gen_to_be_invoked.FindSelectable(dir);
                    translator.Push(L, __cl_gen_ret);



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