| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using DCL; |
| | 4 | | using DCL.Components; |
| | 5 | | using DCL.Models; |
| | 6 | | using UnityEngine; |
| | 7 | |
|
| | 8 | | public class NFTShapePlugin : IPlugin |
| | 9 | | { |
| 0 | 10 | | private IRuntimeComponentFactory factory => DCL.Environment.i.world.componentFactory; |
| | 11 | |
|
| 0 | 12 | | public NFTShapePlugin() |
| | 13 | | { |
| | 14 | | // TODO(Brian): Move all the NFTShape files to the plugin's directory. |
| 0 | 15 | | factory.RegisterBuilder((int) CLASS_ID.NFT_SHAPE, BuildComponent); |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | NFTShape BuildComponent() |
| | 19 | | { |
| 0 | 20 | | return new NFTShape(new NFTInfoRetriever(), new NFTAssetRetriever()); |
| | 21 | | } |
| | 22 | |
|
| | 23 | | public void Dispose() |
| | 24 | | { |
| 0 | 25 | | factory.UnregisterBuilder((int) CLASS_ID.NFT_SHAPE); |
| 0 | 26 | | } |
| | 27 | | } |