Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Assets.Scripts.Wallet;
- using UnityEngine;
- namespace Chests
- {
- /// <summary>
- /// Container for view element data (icons and e.t.c.)
- /// </summary>
- [Serializable]
- public class VideoChestViewData
- {
- public string IconPath;
- public Sprite GetIconSprite()
- {
- return Resources.Load<Sprite>(IconPath);
- }
- }
- /// <summary>
- /// Chest repository for sub reward packs
- /// </summary>
- [Serializable]
- public class VideoChestElement
- {
- [SerializeField] private VideoChestPack[] _packs;
- public VideoChestPack GetChestByChance()
- {
- return null; // add logic for chance randomizer
- }
- }
- /// <summary>
- /// Reward pack repository, contains reward items
- /// </summary>
- [Serializable]
- public class VideoChestPack
- {
- [SerializeField] private VideoChestItem[] _rewardItems;
- public float Chance;
- public bool CalculateChance = true;
- public VideoChestItem GetPackByChance()
- {
- return null; // add logic for chance randomizer
- }
- }
- /// <summary>
- /// Reward item
- /// </summary>
- [Serializable]
- public class VideoChestItem
- {
- public CurrencyItem Item;
- public float Chance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement