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


                MongoDB.Bson.Serialization.Serializers.UInt64Serializer gen_to_be_invoked = (MongoDB.Bson.Serialization.Serializers.UInt64Serializer)translator.FastGetCSObj(L, 1);



                {
                    MongoDB.Bson.Serialization.BsonDeserializationContext _context = (MongoDB.Bson.Serialization.BsonDeserializationContext)translator.GetObject(L, 2, typeof(MongoDB.Bson.Serialization.BsonDeserializationContext));
                    MongoDB.Bson.Serialization.BsonDeserializationArgs    _args; translator.Get(L, 3, out _args);

                    ulong gen_ret = gen_to_be_invoked.Deserialize(_context, _args);
                    LuaAPI.lua_pushuint64(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_Connect(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string __host = LuaAPI.lua_tostring(L, 2);
                    int    __port = LuaAPI.xlua_tointeger(L, 3);

                    ulong gen_ret = gen_to_be_invoked.Connect(__host, __port);
                    LuaAPI.lua_pushuint64(L, gen_ret);



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


                GateServer.GSUserMgr __cl_gen_to_be_invoked = (GateServer.GSUserMgr)translator.FastGetCSObj(L, 1);



                {
                    uint  sid = LuaAPI.xlua_touint(L, 2);
                    ulong gcNID;

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.GetGcNID(sid, out gcNID);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    LuaAPI.lua_pushuint64(L, gcNID);



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


                System.Collections.Concurrent.ConcurrentDictionary <long, ulong> gen_to_be_invoked = (System.Collections.Concurrent.ConcurrentDictionary <long, ulong>)translator.FastGetCSObj(L, 1);



                {
                    long  _key = LuaAPI.lua_toint64(L, 2);
                    ulong _value;

                    bool gen_ret = gen_to_be_invoked.TryGetValue(
                        _key,
                        out _value);
                    LuaAPI.lua_pushboolean(L, gen_ret);
                    LuaAPI.lua_pushuint64(L, _value);



                    return(2);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 5
0
        int UnityEngineNetworkingUnityWebRequest_g_get_downloadedBytes(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.Networking.UnityWebRequest gen_to_be_invoked = (UnityEngine.Networking.UnityWebRequest)translator.FastGetCSObj(L, 1);
            LuaAPI.lua_pushuint64(L, gen_to_be_invoked.downloadedBytes);
            return(1);
        }
Esempio n. 6
0
 static int _g_get_nonStreamingTextureMemory(RealStatePtr L)
 {
     try {
         LuaAPI.lua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureMemory);
     } catch (System.Exception gen_e) {
         return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
     }
     return(1);
 }
Esempio n. 7
0
 static int _g_get_streamingTextureLoadingCount(RealStatePtr L)
 {
     try {
         LuaAPI.lua_pushuint64(L, UnityEngine.Texture.streamingTextureLoadingCount);
     } catch (System.Exception gen_e) {
         return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
     }
     return(1);
 }
Esempio n. 8
0
        static int _g_get_Hash(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.Util.RetainedGizmos.Hasher gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.Hash);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 9
0
        static int _g_get_exp(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.mLastJeffies);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _g_get_rid(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                BattleServer.Battle.Model.Entity __cl_gen_to_be_invoked = (BattleServer.Battle.Model.Entity)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, __cl_gen_to_be_invoked.rid);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 12
0
        static int _g_get_MailId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                xc.ItemManager.TmpGetGoods __cl_gen_to_be_invoked = (xc.ItemManager.TmpGetGoods)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, __cl_gen_to_be_invoked.num);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _g_get_cpuTimePresentCalled(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.FrameTiming gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.cpuTimePresentCalled);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 15
0
        static int _g_get_ByteDownloaded(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.ByteDownloaded);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 16
0
        static int _g_get_gcNID(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                CentralServer.User.CSUser __cl_gen_to_be_invoked = (CentralServer.User.CSUser)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, __cl_gen_to_be_invoked.gcNID);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _g_get_mExpires(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Casinos.EbTimeEvent gen_to_be_invoked = (Casinos.EbTimeEvent)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.mExpires);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 18
0
        static int _g_get_SequenceNumber(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Unity.Entities.World gen_to_be_invoked = (Unity.Entities.World)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.SequenceNumber);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 19
0
        static int _g_get_frameCount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Video.VideoClip __cl_gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, __cl_gen_to_be_invoked.frameCount);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _g_get_sceneCullingMask(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, gen_to_be_invoked.sceneCullingMask);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _g_get_Key(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                System.Collections.Generic.KeyValuePair <ulong, xc.GoodsEquip> __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);
                LuaAPI.lua_pushuint64(L, __cl_gen_to_be_invoked.Key);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 22
0
        static int _g_get_FairyValleyExpRecord(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.InstanceManager __cl_gen_to_be_invoked = (xc.InstanceManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushuint64(L, __cl_gen_to_be_invoked.FairyValleyExpRecord);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 23
0
        static int _m_AddOrUpdate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.Collections.Concurrent.ConcurrentDictionary <long, ulong> gen_to_be_invoked = (System.Collections.Concurrent.ConcurrentDictionary <long, ulong>)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 4 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)) && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3)) && translator.Assignable <System.Func <long, ulong, ulong> >(L, 4))
                {
                    long  _key      = LuaAPI.lua_toint64(L, 2);
                    ulong _addValue = LuaAPI.lua_touint64(L, 3);
                    System.Func <long, ulong, ulong> _updateValueFactory = translator.GetDelegate <System.Func <long, ulong, ulong> >(L, 4);

                    ulong gen_ret = gen_to_be_invoked.AddOrUpdate(
                        _key,
                        _addValue,
                        _updateValueFactory);
                    LuaAPI.lua_pushuint64(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)) && translator.Assignable <System.Func <long, ulong> >(L, 3) && translator.Assignable <System.Func <long, ulong, ulong> >(L, 4))
                {
                    long _key = LuaAPI.lua_toint64(L, 2);
                    System.Func <long, ulong>        _addValueFactory    = translator.GetDelegate <System.Func <long, ulong> >(L, 3);
                    System.Func <long, ulong, ulong> _updateValueFactory = translator.GetDelegate <System.Func <long, ulong, ulong> >(L, 4);

                    ulong gen_ret = gen_to_be_invoked.AddOrUpdate(
                        _key,
                        _addValueFactory,
                        _updateValueFactory);
                    LuaAPI.lua_pushuint64(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.Collections.Concurrent.ConcurrentDictionary<long, ulong>.AddOrUpdate!"));
        }
        static int _m_GetCpuTimerFrequency_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    var gen_ret = UnityEngine.FrameTimingManager.GetCpuTimerFrequency(  );
                    LuaAPI.lua_pushuint64(L, 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_RandUInt64_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    ulong gen_ret = DCET.Model.RandomHelper.RandUInt64(  );
                    LuaAPI.lua_pushuint64(L, 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_SwapUInt64_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    ulong _n = LuaAPI.lua_touint64(L, 1);

                    ulong gen_ret = XLuaFramework.Util.SwapUInt64(_n);
                    LuaAPI.lua_pushuint64(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_GetGoodsNumForMagicEquipBagByTypeId_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    uint eid = LuaAPI.xlua_touint(L, 1);

                    ulong __cl_gen_ret = xc.Magic.MagicEquipHelper.GetGoodsNumForMagicEquipBagByTypeId(eid);
                    LuaAPI.lua_pushuint64(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_ToUInt64_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    string _value = LuaAPI.lua_tostring(L, 1);

                    ulong gen_ret = MongoDB.Bson.IO.JsonConvert.ToUInt64(_value);
                    LuaAPI.lua_pushuint64(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_ToUInt64_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    byte[] _value      = LuaAPI.lua_tobytes(L, 1);
                    int    _startIndex = LuaAPI.xlua_tointeger(L, 2);

                    ulong gen_ret = System.BitConverter.ToUInt64(_value, _startIndex);
                    LuaAPI.lua_pushuint64(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 30
0
 void pushPrimitive(RealStatePtr L, object o)
 {
     if (o is sbyte || o is byte || o is short || o is ushort ||
         o is int)
     {
         int i = Convert.ToInt32(o);
         LuaAPI.xlua_pushinteger(L, i);
     }
     else if (o is uint)
     {
         LuaAPI.xlua_pushuint(L, (uint)o);
     }
     else if (o is float || o is double)
     {
         double d = Convert.ToDouble(o);
         LuaAPI.lua_pushnumber(L, d);
     }
     else if (o is IntPtr)
     {
         LuaAPI.lua_pushlightuserdata(L, (IntPtr)o);
     }
     else if (o is char)
     {
         LuaAPI.xlua_pushinteger(L, (char)o);
     }
     else if (o is long)
     {
         LuaAPI.lua_pushint64(L, Convert.ToInt64(o));
     }
     else if (o is ulong)
     {
         LuaAPI.lua_pushuint64(L, Convert.ToUInt64(o));
     }
     else if (o is bool)
     {
         bool b = (bool)o;
         LuaAPI.lua_pushboolean(L, b);
     }
     else
     {
         throw new Exception("No support type " + o.GetType());
     }
 }