Skip to content

Commit

Permalink
Adicionando google play games plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniciusLelis committed Apr 1, 2020
1 parent 83b3215 commit c13f527
Show file tree
Hide file tree
Showing 386 changed files with 19,604 additions and 8 deletions.
Binary file modified .vs/HPVCrusherPrototype/DesignTimeBuild/.dtbcache
Binary file not shown.
Binary file modified .vs/HPVCrusherPrototype/v15/.suo
Binary file not shown.
Binary file modified .vs/HPVCrusherPrototype/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/HPVCrusherPrototype/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/HPVCrusherPrototype/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
68 changes: 68 additions & 0 deletions Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,72 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\GooglePlayGames\BasicApi\Achievement.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\CommonStatusCodes.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\CommonTypes.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\DummyClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Events\Event.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Events\IEvent.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Events\IEventsClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\IPlayGamesClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\LeaderboardScoreData.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\Invitation.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\IRealTimeMultiplayerClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\ITurnBasedMultiplayerClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\MatchOutcome.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\Participant.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\Player.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\RealTimeMultiplayerListener.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Multiplayer\TurnBasedMatch.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\AdvertisingResult.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\ConnectionRequest.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\ConnectionResponse.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\DummyNearbyConnectionClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\EndpointDetails.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\INearbyConnectionClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Nearby\NearbyConnectionConfiguration.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\PlayerStats.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\PlayGamesClientConfiguration.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\SavedGame\ISavedGameClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\SavedGame\ISavedGameMetadata.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\SavedGame\SavedGameMetadataUpdate.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\ScorePageToken.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\SignInHelper.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\SignInInteractivity.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\SignInStatus.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Video\CaptureOverlayStateListener.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Video\IVideoClient.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Video\VideoCapabilities.cs" />
<Compile Include="Assets\GooglePlayGames\BasicApi\Video\VideoCaptureState.cs" />
<Compile Include="Assets\GooglePlayGames\GameInfo.cs" />
<Compile Include="Assets\GooglePlayGames\ISocialPlatform\PlayGamesAchievement.cs" />
<Compile Include="Assets\GooglePlayGames\ISocialPlatform\PlayGamesLeaderboard.cs" />
<Compile Include="Assets\GooglePlayGames\ISocialPlatform\PlayGamesLocalUser.cs" />
<Compile Include="Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs" />
<Compile Include="Assets\GooglePlayGames\ISocialPlatform\PlayGamesScore.cs" />
<Compile Include="Assets\GooglePlayGames\ISocialPlatform\PlayGamesUserProfile.cs" />
<Compile Include="Assets\GooglePlayGames\OurUtils\Logger.cs" />
<Compile Include="Assets\GooglePlayGames\OurUtils\Misc.cs" />
<Compile Include="Assets\GooglePlayGames\OurUtils\NearbyHelperObject.cs" />
<Compile Include="Assets\GooglePlayGames\OurUtils\PlatformUtils.cs" />
<Compile Include="Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidEventsClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidHelperFragment.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidJavaConverter.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidNearbyConnectionClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidRealTimeMultiplayerClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidSavedGameClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidSnapshotMetadata.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidTaskUtils.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidTokenClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidTurnBasedMultiplayerClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\Android\AndroidVideoClient.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\NearbyConnectionClientFactory.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\PlayGamesClientFactory.cs" />
<Compile Include="Assets\GooglePlayGames\Platforms\TokenClient.cs" />
<Compile Include="Assets\GooglePlayGames\PluginVersion.cs" />
<Compile Include="Assets\GPGSIds.cs" />
<Compile Include="Assets\Scripts\AudioManager.cs" />
<Compile Include="Assets\Scripts\Constants.cs" />
<Compile Include="Assets\Scripts\DialogEpisodesList.cs" />
Expand All @@ -70,6 +136,7 @@
<Compile Include="Assets\Scripts\EpisodesFileHandler.cs" />
<Compile Include="Assets\Scripts\EpisodesMenu.cs" />
<Compile Include="Assets\Scripts\GameGrid.cs" />
<Compile Include="Assets\Scripts\GooglePlayGames\PlayGamesScript.cs" />
<Compile Include="Assets\Scripts\GridItem.cs" />
<Compile Include="Assets\Scripts\MainMenu.cs" />
<Compile Include="Assets\Scripts\MatchInfo.cs" />
Expand All @@ -81,6 +148,7 @@
<None Include="Assets\TextMesh Pro\Resources\Shaders\TMPro_Properties.cginc" />
<None Include="Assets\TextMesh Pro\Resources\Shaders\TMP_Bitmap-Custom-Atlas.shader" />
<None Include="Assets\Resources\episodes_config.txt" />
<None Include="Assets\GooglePlayGames\Plugins\Android\GooglePlayGamesManifest.plugin\AndroidManifest.xml" />
<None Include="Assets\TextMesh Pro\Resources\LineBreaking Following Characters.txt" />
<None Include="Assets\TextMesh Pro\Sprites\EmojiOne Attribution.txt" />
<None Include="Assets\TextMesh Pro\Resources\Shaders\TMP_SDF-Mobile Masking.shader" />
Expand Down
30 changes: 30 additions & 0 deletions Assets/GPGSIds.cs
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>

}

11 changes: 11 additions & 0 deletions Assets/GPGSIds.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/GooglePlayGames.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/GooglePlayGames/BasicApi.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

201 changes: 201 additions & 0 deletions Assets/GooglePlayGames/BasicApi/Achievement.cs
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
14 changes: 14 additions & 0 deletions Assets/GooglePlayGames/BasicApi/Achievement.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c13f527

Please sign in to comment.