init: add project

This commit is contained in:
Bragin Stepan
2026-02-18 23:02:28 +05:00
commit 4f01e66894
620 changed files with 52253 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
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; }
}
}
}