mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
24 lines
815 B
C#
24 lines
815 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using _Project.Develop.Runtime.Logic.Meta.Features.Wallet;
|
|
using UnityEngine;
|
|
|
|
namespace _Project.Develop.Runtime.Configs.Meta
|
|
{
|
|
[CreateAssetMenu(menuName = "Configs/Meta/Wallet/NewStartWalletConfig", fileName = "StartWalletConfig")]
|
|
public class StartWalletConfigSO : ScriptableObject
|
|
{
|
|
[SerializeField] private List<CurrencyConfig> _values;
|
|
|
|
public int GetValueFor(CurrencyTypes currencyType)
|
|
=> _values.First(config => config.Type == currencyType).Value;
|
|
|
|
[Serializable]
|
|
private class CurrencyConfig
|
|
{
|
|
[field: SerializeField] public CurrencyTypes Type { get; private set; }
|
|
[field: SerializeField] public int Value { get; private set; }
|
|
}
|
|
}
|
|
} |