| | 1 | | using Decentraland.Common; |
| | 2 | |
|
| | 3 | | namespace DCL.ECSComponents |
| | 4 | | { |
| | 5 | | public static class PBNFTShape_Defaults |
| | 6 | | { |
| 1 | 7 | | private static readonly Color3 defaultColor = new Color3() |
| | 8 | | { |
| | 9 | | R = 0.6404918f, |
| | 10 | | G = 0.611472f, |
| | 11 | | B = 0.8584906f |
| | 12 | | }; |
| | 13 | |
|
| | 14 | | public static DCL.ECSComponents.NftFrameType GetStyle(this PBNftShape self) |
| | 15 | | { |
| 13 | 16 | | return self.HasStyle ? self.Style : DCL.ECSComponents.NftFrameType.NftClassic; |
| | 17 | | } |
| | 18 | |
|
| | 19 | | public static Color3 GetColor(this PBNftShape self) |
| | 20 | | { |
| 12 | 21 | | return self.Color ?? defaultColor; |
| | 22 | | } |
| | 23 | | } |
| | 24 | | } |