Exemplo n.º 1
0
 static int LoginInfoLog(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         CenterServerManager obj = (CenterServerManager)ToLua.CheckObject(L, 1, typeof(CenterServerManager));
         string arg0             = ToLua.CheckString(L, 2);
         obj.LoginInfoLog(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    private static int LoginInfoLog(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            CenterServerManager centerServerManager = (CenterServerManager)ToLua.CheckObject(L, 1, typeof(CenterServerManager));
            string nickname = ToLua.CheckString(L, 2);
            centerServerManager.LoginInfoLog(nickname);
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }