-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adicionando google play games plugin
- Loading branch information
1 parent
83b3215
commit c13f527
Showing
386 changed files
with
19,604 additions
and
8 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// <copyright file="GPGSIds.cs" company="Google Inc."> | ||
// Copyright (C) 2015 Google Inc. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
|
||
/// | ||
/// This file is automatically generated DO NOT EDIT! | ||
/// | ||
/// These are the constants defined in the Play Games Console for Game Services | ||
/// Resources. | ||
/// | ||
|
||
|
||
public static class GPGSIds | ||
{ | ||
public const string leaderboard_leaderboard = "CgkIxLKf_PIBEAIQAA"; // <GPGSID> | ||
|
||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
// <copyright file="Achievement.cs" company="Google Inc."> | ||
// Copyright (C) 2014 Google Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
|
||
#if UNITY_ANDROID | ||
|
||
namespace GooglePlayGames.BasicApi | ||
{ | ||
using System; | ||
|
||
/// <summary>Data interface for retrieving achievement information.</summary> | ||
/// <remarks> | ||
/// There are 3 states an achievement can be in: | ||
/// <para> | ||
/// Hidden - indicating the name and description of the achievement is | ||
/// not visible to the player. | ||
/// </para><para> | ||
/// Revealed - indicating the name and description of the achievement is | ||
/// visible to the player. | ||
/// Unlocked - indicating the player has unlocked, or achieved, the achievment. | ||
/// </para><para> | ||
/// Achievements has two types, standard which is unlocked in one step, | ||
/// and incremental, which require multiple steps to unlock. | ||
/// </para> | ||
/// </remarks> | ||
public class Achievement | ||
{ | ||
static readonly DateTime UnixEpoch = | ||
new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); | ||
|
||
private string mId = string.Empty; | ||
private bool mIsIncremental = false; | ||
private bool mIsRevealed = false; | ||
private bool mIsUnlocked = false; | ||
private int mCurrentSteps = 0; | ||
private int mTotalSteps = 0; | ||
private string mDescription = string.Empty; | ||
private string mName = string.Empty; | ||
private long mLastModifiedTime = 0; | ||
private ulong mPoints; | ||
private string mRevealedImageUrl; | ||
private string mUnlockedImageUrl; | ||
|
||
/// <summary> | ||
/// Returns a <see cref="System.String"/> that represents the current <see cref="GooglePlayGames.BasicApi.Achievement"/>. | ||
/// </summary> | ||
/// <returns>A <see cref="System.String"/> that represents the current <see cref="GooglePlayGames.BasicApi.Achievement"/>.</returns> | ||
public override string ToString() | ||
{ | ||
return string.Format( | ||
"[Achievement] id={0}, name={1}, desc={2}, type={3}, revealed={4}, unlocked={5}, steps={6}/{7}", | ||
mId, mName, mDescription, mIsIncremental ? "INCREMENTAL" : "STANDARD", | ||
mIsRevealed, mIsUnlocked, mCurrentSteps, mTotalSteps); | ||
} | ||
|
||
public Achievement() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Indicates whether this achievement is incremental. | ||
/// </summary> | ||
public bool IsIncremental | ||
{ | ||
get { return mIsIncremental; } | ||
|
||
set { mIsIncremental = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The number of steps the user has gone towards unlocking this achievement. | ||
/// </summary> | ||
public int CurrentSteps | ||
{ | ||
get { return mCurrentSteps; } | ||
|
||
set { mCurrentSteps = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The total number of steps needed to unlock this achievement. | ||
/// </summary> | ||
public int TotalSteps | ||
{ | ||
get { return mTotalSteps; } | ||
|
||
set { mTotalSteps = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Indicates whether the achievement is unlocked or not. | ||
/// </summary> | ||
public bool IsUnlocked | ||
{ | ||
get { return mIsUnlocked; } | ||
|
||
set { mIsUnlocked = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Indicates whether the achievement is revealed or not (hidden). | ||
/// </summary> | ||
public bool IsRevealed | ||
{ | ||
get { return mIsRevealed; } | ||
|
||
set { mIsRevealed = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The ID string of this achievement. | ||
/// </summary> | ||
public string Id | ||
{ | ||
get { return mId; } | ||
|
||
set { mId = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The description of this achievement. | ||
/// </summary> | ||
public string Description | ||
{ | ||
get { return this.mDescription; } | ||
|
||
set { mDescription = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The name of this achievement. | ||
/// </summary> | ||
public string Name | ||
{ | ||
get { return this.mName; } | ||
|
||
set { mName = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The date and time the state of the achievement was modified. | ||
/// </summary> | ||
/// <remarks> | ||
/// The value is invalid (-1 long) if the achievement state has | ||
/// never been updated. | ||
/// </remarks> | ||
public DateTime LastModifiedTime | ||
{ | ||
get { return UnixEpoch.AddMilliseconds(mLastModifiedTime); } | ||
|
||
set | ||
{ | ||
TimeSpan ts = value - UnixEpoch; | ||
mLastModifiedTime = (long) ts.TotalMilliseconds; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// The number of experience points earned for unlocking this Achievement. | ||
/// </summary> | ||
public ulong Points | ||
{ | ||
get { return mPoints; } | ||
|
||
set { mPoints = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The URL to the image to display when the achievement is revealed. | ||
/// </summary> | ||
public string RevealedImageUrl | ||
{ | ||
get { return mRevealedImageUrl; } | ||
|
||
set { mRevealedImageUrl = value; } | ||
} | ||
|
||
/// <summary> | ||
/// The URL to the image to display when the achievement is unlocked. | ||
/// </summary> | ||
public string UnlockedImageUrl | ||
{ | ||
get { return mUnlockedImageUrl; } | ||
|
||
set { mUnlockedImageUrl = value; } | ||
} | ||
} | ||
} | ||
#endif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.