Пример #1
0
 static public int BroadCast(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             TcpServer self = (TcpServer)checkSelf(l);
             self.BroadCast();
             return(0);
         }
         else if (matchType(l, argc, 2, typeof(Msg)))
         {
             TcpServer self = (TcpServer)checkSelf(l);
             Msg       a1;
             checkType(l, 2, out a1);
             self.BroadCast(a1);
             return(0);
         }
         else if (matchType(l, argc, 2, typeof(System.Byte[])))
         {
             TcpServer     self = (TcpServer)checkSelf(l);
             System.Byte[] a1;
             checkType(l, 2, out a1);
             self.BroadCast(a1);
             return(0);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }