コード例 #1
0
    static int get_packetLenMin(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DNet.GameWebSocketClient obj = (DNet.GameWebSocketClient)o;
            int ret = obj.packetLenMin;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index packetLenMin on a nil value"));
        }
    }
コード例 #2
0
    static int get_heartMsgId(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DNet.GameWebSocketClient obj = (DNet.GameWebSocketClient)o;
            string ret = obj.heartMsgId;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index heartMsgId on a nil value"));
        }
    }
コード例 #3
0
    static int get_onReceiveTextMessageFn(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DNet.GameWebSocketClient obj = (DNet.GameWebSocketClient)o;
            LuaInterface.LuaFunction ret = obj.onReceiveTextMessageFn;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onReceiveTextMessageFn on a nil value"));
        }
    }
コード例 #4
0
 static int QPYX__CreateDNet_GameWebSocketClient_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 2)
         {
             string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
             int    QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
             DNet.GameWebSocketClient QPYX_obj_YXQP = new DNet.GameWebSocketClient(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_obj_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to ctor method: DNet.GameWebSocketClient.New"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #5
0
    static int _CreateDNet_GameWebSocketClient(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                int    arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                DNet.GameWebSocketClient obj = new DNet.GameWebSocketClient(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DNet.GameWebSocketClient.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #6
0
    static int QPYX_set_canSendHeartPack_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 2);
            QPYX_obj_YXQP.canSendHeartPack = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index canSendHeartPack on a nil value"));
        }
    }
コード例 #7
0
    static int QPYX_set_heartSendInIntervalTime_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
            QPYX_obj_YXQP.heartSendInIntervalTime = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index heartSendInIntervalTime on a nil value"));
        }
    }
コード例 #8
0
    static int QPYX_set_heartMsgId_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2);
            QPYX_obj_YXQP.heartMsgId = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index heartMsgId on a nil value"));
        }
    }
コード例 #9
0
    static int QPYX_set_onReceiveTextMessageFn_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            LuaFunction QPYX_arg0_YXQP = ToLua.CheckLuaFunction(L_YXQP, 2);
            QPYX_obj_YXQP.onReceiveTextMessageFn = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onReceiveTextMessageFn on a nil value"));
        }
    }
コード例 #10
0
    static int QPYX_get_PingFrequnecy_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            System.TimeSpan QPYX_ret_YXQP = QPYX_obj_YXQP.PingFrequnecy;
            ToLua.PushValue(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index PingFrequnecy on a nil value"));
        }
    }
コード例 #11
0
    static int QPYX_get_webSocketOpen_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            bool QPYX_ret_YXQP = QPYX_obj_YXQP.webSocketOpen;
            LuaDLL.lua_pushboolean(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index webSocketOpen on a nil value"));
        }
    }
コード例 #12
0
    static int QPYX_get_heartSendInIntervalTime_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            int QPYX_ret_YXQP = QPYX_obj_YXQP.heartSendInIntervalTime;
            LuaDLL.lua_pushinteger(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index heartSendInIntervalTime on a nil value"));
        }
    }
コード例 #13
0
    static int QPYX_get_packetHeadLenOffest_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            int QPYX_ret_YXQP = QPYX_obj_YXQP.packetHeadLenOffest;
            LuaDLL.lua_pushinteger(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index packetHeadLenOffest on a nil value"));
        }
    }
コード例 #14
0
    static int QPYX_get_needDecompressMsgName_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            string QPYX_ret_YXQP = QPYX_obj_YXQP.needDecompressMsgName;
            LuaDLL.lua_pushstring(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index needDecompressMsgName on a nil value"));
        }
    }
コード例 #15
0
    static int QPYX_get_onReceiveTextMessageFn_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DNet.GameWebSocketClient QPYX_obj_YXQP = (DNet.GameWebSocketClient)QPYX_o_YXQP;
            LuaInterface.LuaFunction QPYX_ret_YXQP = QPYX_obj_YXQP.onReceiveTextMessageFn;
            ToLua.Push(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onReceiveTextMessageFn on a nil value"));
        }
    }