/// <summary>
 /// Checks if Cloud IDs match.
 /// </summary>
 /// <param name="otherConfig">Other <see cref="CloudConfig"/>.</param>
 /// <returns>If Cloud IDs match.</returns>
 public bool EqualsCloudIDs(CloudConfig otherConfig)
 {
     return(AchievementIDs.Count == otherConfig.AchievementIDs.Count &&
            LeaderboardIDs.Count == otherConfig.LeaderboardIDs.Count &&
            !AchievementIDs.Where((t, i) => !t.EqualsIDs(otherConfig.AchievementIDs[i])).Any() &&
            !LeaderboardIDs.Where((t, i) => !t.EqualsIDs(otherConfig.LeaderboardIDs[i])).Any());
 }
 /// <summary>
 /// Checks if settings match.
 /// </summary>
 /// <param name="otherConfig">Other <see cref="CloudConfig"/>.</param>
 /// <returns>If settings match.</returns>
 public bool EqualsSettings(CloudConfig otherConfig)
 {
     return(AppleSupported == otherConfig.AppleSupported &&
            GoogleSupported == otherConfig.GoogleSupported &&
            GoogleAppID == otherConfig.GoogleAppID &&
            GoogleSetupRun == otherConfig.GoogleSetupRun &&
            DebugModeEnabled == otherConfig.DebugModeEnabled &&
            SettingsLocation == otherConfig.SettingsLocation);
 }
Exemple #3
0
 /// <summary>
 /// Checks if settings match.
 /// </summary>
 /// <param name="otherConfig">Other <see cref="CloudConfig"/>.</param>
 /// <returns>If settings match.</returns>
 public bool EqualsSettings(CloudConfig otherConfig)
 {
     return(AppleSupported == otherConfig.AppleSupported &&
            GoogleSupported == otherConfig.GoogleSupported &&
            AmazonSupported == otherConfig.AmazonSupported &&
            AndroidPlatform == otherConfig.AndroidPlatform &&
            GoogleAppID == otherConfig.GoogleAppID &&
            GoogleSetupRun == otherConfig.GoogleSetupRun &&
            DebugModeEnabled == otherConfig.DebugModeEnabled &&
            ApiKey == otherConfig.ApiKey);
 }
 /// <summary>
 /// Checks if Cloud Variables match.
 /// </summary>
 /// <param name="otherConfig">Other <see cref="CloudConfig"/>.</param>
 /// <returns>If Cloud Variables match.</returns>
 public bool EqualsCloudVariables(CloudConfig otherConfig)
 {
     return(CloudVariables.Count == otherConfig.CloudVariables.Count &&
            !CloudVariables.Where((t, i) => !t.EqualsCloudVariable(otherConfig.CloudVariables[i])).Any());
 }