New custom icon system (not fully done yet)

This commit is contained in:
2026-01-24 16:06:03 -07:00
parent ca4d78d711
commit 42b67e9e06
23 changed files with 647 additions and 532 deletions

View 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; }
}

View File

@@ -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();
}

View File

@@ -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; }

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 1ee133a71d8c349be9e474bc628e7fe0