public void SortTable(SortQuery [] sortQueries, uint numSortQueries, out Row[] arg2)
        {
            RakNetListSortQuery sortQueriesList = null;

            if (sortQueries != null)
            {
                sortQueriesList = new RakNetListSortQuery();
                int listLen = sortQueries.Length;
                for (int i = 0; i < listLen; i++)
                {
                    sortQueriesList.Insert(sortQueries[i], "", 1);
                }
            }

            int rowCount = (int)GetRowCount();

            Row[] rowArray             = new Row[rowCount];
            RakNetListTableRow passVal = new RakNetListTableRow();

            SortTableHelper(sortQueriesList, numSortQueries, passVal);
            for (int i = 0; i < rowCount; i++)
            {
                rowArray[i] = passVal[i];
            }
            arg2 = rowArray;
        }
示例#2
0
文件: Table.cs 项目: nulhax/VOID
  	public void SortTable(SortQuery [] sortQueries, uint numSortQueries, out Row[] arg2) 
 	{
		RakNetListSortQuery sortQueriesList =null;
 		if (sortQueries!=null)
 		{
 			sortQueriesList = new RakNetListSortQuery();
 			int listLen = sortQueries.Length;
 			for (int i = 0; i < listLen; i++)
 			{
      	 		    sortQueriesList.Insert(sortQueries[i], "", 1);
 			}
 		}
 
 		int rowCount= (int)GetRowCount();
 		Row[] rowArray= new Row[rowCount];
 		RakNetListTableRow passVal = new RakNetListTableRow();
 		SortTableHelper(sortQueriesList,numSortQueries,passVal);
 		for (int i=0; i<rowCount;i++)
 		{
 		rowArray[i]=passVal[i];
	 	} 
 		arg2=rowArray;
  	}