New custom icon system (not fully done yet)
This commit is contained in:
14
Assets/Scripts/Types/MarketplaceIcon.cs
Normal file
14
Assets/Scripts/Types/MarketplaceIcon.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Newtonsoft.Json;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
[Preserve]
|
||||
public class MarketplaceIcon
|
||||
{
|
||||
[Preserve]
|
||||
[JsonProperty("data")]
|
||||
public string Data { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("id")]
|
||||
public string ID { get; set; }
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -8,6 +8,6 @@ public class MarketplaceIconStorageType
|
||||
public string Selected { get; set; } = null;
|
||||
[JsonProperty("balance")]
|
||||
public BigInteger Balance { get; set; } = 0;
|
||||
[JsonProperty("data")]
|
||||
public MarketplaceIconType[] Data { get; set; } = Array.Empty<MarketplaceIconType>();
|
||||
[JsonProperty("purchased")]
|
||||
public List<string> Purchased { get; set; } = new();
|
||||
}
|
||||
@@ -3,7 +3,7 @@ using Newtonsoft.Json;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
[Preserve]
|
||||
public class MarketplaceIconType
|
||||
public class MarketplaceTempIcon
|
||||
{
|
||||
[Preserve]
|
||||
[JsonProperty("username")]
|
||||
@@ -18,13 +18,17 @@ public class MarketplaceIconType
|
||||
public string Data { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("uuid")]
|
||||
public string UUID { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public string ID { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("price")]
|
||||
public BigInteger Price { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("buyable")]
|
||||
public bool Buyable { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
2
Assets/Scripts/Types/MarketplaceTempIcon.cs.meta
Normal file
2
Assets/Scripts/Types/MarketplaceTempIcon.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1ee133a71d8c349be9e474bc628e7fe0
|
||||
Reference in New Issue
Block a user