| | 1 | | using System; |
| | 2 | | using System.Collections; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | [Serializable] |
| | 7 | | public struct NFTShapeBuilderRepresentantion |
| | 8 | | { |
| | 9 | | public string url; |
| | 10 | | } |
| | 11 | |
|
| | 12 | | [Serializable] |
| | 13 | | public class NFTShapeStatelessRepresentantion |
| | 14 | | { |
| | 15 | | public string src; |
| | 16 | | public string assetId; |
| 0 | 17 | | public ColorRepresentantion color = new ColorRepresentantion(0.6404918f, 0.611472f, 0.8584906f); // "light purple" d |
| | 18 | | public int style = 0; |
| 0 | 19 | | public bool withCollisions = true; |
| 0 | 20 | | public bool isPointerBlocker = true; |
| 0 | 21 | | public bool visible = true; |
| | 22 | |
|
| | 23 | |
|
| | 24 | | [Serializable] |
| | 25 | | public class ColorRepresentantion |
| | 26 | | { |
| | 27 | | public float r; |
| | 28 | | public float g; |
| | 29 | | public float b; |
| | 30 | | public float a; |
| | 31 | |
|
| 0 | 32 | | public ColorRepresentantion(float r, float g, float b) |
| | 33 | | { |
| 0 | 34 | | this.r = r; |
| 0 | 35 | | this.g = g; |
| 0 | 36 | | this.b = b; |
| | 37 | |
|
| 0 | 38 | | a = 1; |
| 0 | 39 | | } |
| | 40 | | } |
| | 41 | | } |