internal PlayGamesScore AsScore(string leaderboardId)
        {
            DateTime date;
            DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
            ulong val = GetLastModifiedTime();
            if (val == MinusOne)
            {
                val = 0;
            }
            date = UnixEpoch.AddMilliseconds(val);

            PlayGamesScore score = new PlayGamesScore(
                                       date,
                leaderboardId,
                            GetScore().GetRank(),
                                       GetPlayerId(),
                        GetScore().GetValue(),
                        GetScore().GetMetadata());
            return score;
        }
        internal PlayGamesScore AsScore(string leaderboardId, string selfPlayerId)
        {
            DateTime date;
            DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
            ulong val = GetDate();
            if (val == MinusOne)
            {
                val = 0;
            }
            date = UnixEpoch.AddMilliseconds(val);

            PlayGamesScore retval = new PlayGamesScore(
                                        date,
                                        leaderboardId,
                                        GetRank(),
                                        selfPlayerId,
                                        GetValue(),
                                        GetMetadata());
            return retval;
        }
Ejemplo n.º 3
0
        internal PlayGamesScore AsScore(string leaderboardId, string selfPlayerId)
        {
            DateTime date;
            DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
            ulong    val       = GetDate();

            if (val == MinusOne)
            {
                val = 0;
            }
            date = UnixEpoch.AddMilliseconds(val);

            PlayGamesScore retval = new PlayGamesScore(
                date,
                leaderboardId,
                GetRank(),
                selfPlayerId,
                GetValue(),
                GetMetadata());

            return(retval);
        }
Ejemplo n.º 4
0
        internal PlayGamesScore AsScore(string leaderboardId)
        {
            DateTime date;
            DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
            ulong    val       = GetLastModifiedTime();

            if (val == MinusOne)
            {
                val = 0;
            }
            date = UnixEpoch.AddMilliseconds(val);

            PlayGamesScore score = new PlayGamesScore(
                date,
                leaderboardId,
                GetScore().GetRank(),
                GetPlayerId(),
                GetScore().GetValue(),
                GetScore().GetMetadata());

            return(score);
        }
Ejemplo n.º 5
0
 internal int AddScore(PlayGamesScore score)
 {
     this.mScores.Add(score);
     return(this.mScores.Count);
 }
 internal int AddScore(PlayGamesScore score)
 {
     mScores.Add(score);
     return mScores.Count;
 }