Add a user search menu
This commit is contained in:
39
Assets/Scripts/Types/Account.cs
Normal file
39
Assets/Scripts/Types/Account.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.Numerics;
|
||||
using Newtonsoft.Json;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
[Preserve]
|
||||
public class Account
|
||||
{
|
||||
[Preserve]
|
||||
[JsonProperty("id")]
|
||||
public BigInteger UserID { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("username")]
|
||||
public string Username { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("icon")]
|
||||
public int Icon { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("overlay")]
|
||||
public int Overlay { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("birdColor")]
|
||||
public int[] BirdColor { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("overlayColor")]
|
||||
public int[] OverlayColor { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("customIcon")]
|
||||
public string CustomIcon { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("stats")]
|
||||
public Stats Stats { get; set; }
|
||||
}
|
||||
2
Assets/Scripts/Types/Account.cs.meta
Normal file
2
Assets/Scripts/Types/Account.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98be53ab03e46424096c025c9dafd0eb
|
||||
47
Assets/Scripts/Types/Stats.cs
Normal file
47
Assets/Scripts/Types/Stats.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System.Numerics;
|
||||
using Newtonsoft.Json;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
[Preserve]
|
||||
public class Stats
|
||||
{
|
||||
[Preserve]
|
||||
[JsonProperty("highScore")]
|
||||
public BigInteger HighScore { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalNormalBerries")]
|
||||
public BigInteger TotalNormalBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalPoisonBerries")]
|
||||
public BigInteger TotalPoisonBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalSlowBerries")]
|
||||
public BigInteger TotalSlowBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalUltraBerries")]
|
||||
public BigInteger TotalUltraBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalSpeedyBerries")]
|
||||
public BigInteger TotalSpeedyBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalCoinBerries")]
|
||||
public BigInteger TotalCoinBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalRandomBerries")]
|
||||
public BigInteger TotalRandomBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("totalAntiBerries")]
|
||||
public BigInteger TotalAntiBerries { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("coins")]
|
||||
public BigInteger Coins { get; set; }
|
||||
}
|
||||
2
Assets/Scripts/Types/Stats.cs.meta
Normal file
2
Assets/Scripts/Types/Stats.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdfa01999e81b4974b97832cf44a3784
|
||||
Reference in New Issue
Block a user