Beispiel #1
0
        private void AddScoresToDB()
        {
            CPoints points = CGame.GetPoints();

            if (points == null)
            {
                return;
            }

            for (int round = 0; round < points.NumRounds; round++)
            {
                SPlayer[] player = points.GetPlayer(round, CGame.NumPlayer);

                for (int p = 0; p < player.Length; p++)
                {
                    if (player[p].Points > CSettings.MinScoreForDB && player[p].SongFinished && !CProfiles.IsGuestProfile(player[p].ProfileID))
                    {
                        _NewEntryIDs.Add(CDataBase.AddScore(player[p]));
                    }
                }
            }
        }