int FillGameUnitsStats(GameUnitsStats stats, int row)
    {
        row = FillHeaders(row);

        Dictionary<GameUnit, GameUnitStatsNode> gameUnitsNodes  = stats.GameUnitNodes;
        foreach (GameUnit gu in gameUnitsNodes.Keys) {
            row = FillStats (gu.Name, gameUnitsNodes[gu], row);
        }
        return row;
    }
    int FillFirstLevelGameUnitsStats(GameUnitsStats stats, int row)
    {
        int i=1;

        row += 2;
        stats.GameNode.Sort((a, b) => (a.Node.Start - b.Node.Start).MSeconds);

        foreach (GameUnitStatsNode node in stats.GameNode){
            row = FillStats (node.Name + " " + i, node, row);
            i++;
        }
        return row;
    }
    int FillFirstLevelGameUnitsStats(GameUnitsStats stats, int row)
    {
        int i=1;
        stats.GameNode.Sort((a, b) => (a.Node.Start - b.Node.Start).MSeconds);

        SetColoredHeader(Catalog.GetString("Duration"), row, 2);
        SetColoredHeader(Catalog.GetString("Played Time"), row, 3);
        row++;
        foreach (GameUnitStatsNode node in stats.GameNode){
            ws.Cells[row, 1].Value = node.Name + ' ' + i;
            ws.Cells[row, 2].Value = node.Duration / 1000;
            ws.Cells[row, 3].Value = node.PlayingTime / 1000;
            i++;
            row++;
        }
        row ++;
        return row;
    }
Beispiel #4
0
 void UpdateGameUnitsStats(Project project)
 {
     guStats = new GameUnitsStats(project.GameUnits, (int)project.Description.File.Length);
 }
    int FillGameStats(GameUnitsStats stats, int row)
    {
        Dictionary<GameUnit, GameUnitStatsNode> gameUnitsNodes  = stats.GameUnitNodes;

        SetColoredHeader(Catalog.GetString("Duration"), row, 2);
        SetColoredHeader(Catalog.GetString("Played Time"), row, 3);
        row++;
        foreach (GameUnit gu in gameUnitsNodes.Keys) {
            ws.Cells[row, 1].Value = Catalog.GetString("Match");
            ws.Cells[row, 2].Value = gameUnitsNodes[gu].Duration / 1000;
            ws.Cells[row, 3].Value = gameUnitsNodes[gu].PlayingTime / 1000;
            row++;
            break;
        }
        row ++;
        return row;
    }
 void UpdateGameUnitsStats(Project project)
 {
     guStats = new GameUnitsStats(project.GameUnits, (int)project.Description.File.Length);
 }