Esempio n. 1
0
 static int GetDaTingWebSocketManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         DaTingSocket o = LuaFramework.LuaHelper.GetDaTingWebSocketManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
 static int SendMsg(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DaTingSocket obj  = (DaTingSocket)ToLua.CheckObject <DaTingSocket>(L, 1);
         string       arg0 = ToLua.CheckString(L, 2);
         obj.SendMsg(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
    static int set_MIsStartSocket(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DaTingSocket obj  = (DaTingSocket)o;
            bool         arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.MIsStartSocket = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index MIsStartSocket on a nil value"));
        }
    }
Esempio n. 4
0
    static int get_MIsStartSocket(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DaTingSocket obj = (DaTingSocket)o;
            bool         ret = obj.MIsStartSocket;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index MIsStartSocket on a nil value"));
        }
    }