mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
init: add project
This commit is contained in:
3
Assets/_Project/Develop/Runtime/Configs/Gameplay.meta
Normal file
3
Assets/_Project/Develop/Runtime/Configs/Gameplay.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09469fa4089d4337a6f15c97e8de91d1
|
||||
timeCreated: 1770310930
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42a7ac9b4d0546bb953736e362f57d18
|
||||
timeCreated: 1770317233
|
||||
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Develop.Runtime.Configs.Gameplay.Levels
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Configs/Gameplay/Levels/NewLevelConfig", fileName = "LevelConfig")]
|
||||
public class LevelConfigSO : ScriptableObject
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92b0407d77114e269e933958033e5582
|
||||
timeCreated: 1771426563
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Develop.Runtime.Configs.Gameplay.Levels
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Configs/Gameplay/Levels/LevelsListConfig", fileName = "LevelsListConfig")]
|
||||
public class LevelsListConfigSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<LevelConfigSO> _levels;
|
||||
|
||||
public IReadOnlyList<LevelConfigSO> Levels => _levels;
|
||||
|
||||
public LevelConfigSO GetBy(int levelNumber)
|
||||
{
|
||||
int levelIndex = levelNumber - 1;
|
||||
|
||||
return _levels[levelIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d98a268b1d14e748199df00442f0142
|
||||
timeCreated: 1770317333
|
||||
3
Assets/_Project/Develop/Runtime/Configs/Meta.meta
Normal file
3
Assets/_Project/Develop/Runtime/Configs/Meta.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0699768783a644f9842f4fca57c22176
|
||||
timeCreated: 1770822727
|
||||
@@ -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/NewCurrencyIconsConfig", fileName = "CurrencyIconsConfig")]
|
||||
public class CurrencyIconsConfigSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<CurrencyConfig> _configs;
|
||||
|
||||
public Sprite GetSpriteFor(CurrencyTypes currencyType)
|
||||
=> _configs.First(config => config.Type == currencyType).Sprite;
|
||||
|
||||
[Serializable]
|
||||
private class CurrencyConfig
|
||||
{
|
||||
[field: SerializeField] public CurrencyTypes Type { get; private set; }
|
||||
[field: SerializeField] public Sprite Sprite { get; private set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2878946a8cb24cbcb7234ea84d8630c8
|
||||
timeCreated: 1770822736
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49fdd27f59754c9b9eea8145306d4d61
|
||||
timeCreated: 1770822736
|
||||
Reference in New Issue
Block a user