2025-11-25 08:19:33 -05:00
|
|
|
using System.Collections.Generic;
|
2026-02-13 09:22:11 -05:00
|
|
|
using Cielonos.Core;
|
2026-03-20 12:07:44 -04:00
|
|
|
using Cielonos.MainGame.Characters.Inventory;
|
2025-12-22 18:36:29 -05:00
|
|
|
using DamageNumbersPro;
|
2025-11-25 08:19:33 -05:00
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Cielonos.MainGame
|
|
|
|
|
{
|
2026-02-13 09:22:11 -05:00
|
|
|
[CreateAssetMenu(fileName = "BasePrefabsCollection", menuName = "Cielonos/BaseCollections/MainGameBaseCollection")]
|
|
|
|
|
public partial class MainGameBaseCollection : BaseCollection<MainGameBaseCollection>
|
2025-11-25 08:19:33 -05:00
|
|
|
{
|
|
|
|
|
|
2026-01-03 18:19:39 -05:00
|
|
|
}
|
|
|
|
|
|
2026-02-13 09:22:11 -05:00
|
|
|
public partial class MainGameBaseCollection
|
|
|
|
|
{
|
|
|
|
|
public Dictionary<BreakthroughType, Color> outlineColorCollection = new Dictionary<BreakthroughType, Color>();
|
|
|
|
|
public Dictionary<ItemRarity, Color> itemRarityColorCollection = new Dictionary<ItemRarity, Color>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public partial class MainGameBaseCollection
|
|
|
|
|
{
|
|
|
|
|
public Dictionary<string, MeshEffect> meshEffectCollection = new Dictionary<string, MeshEffect>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public partial class MainGameBaseCollection
|
|
|
|
|
{
|
|
|
|
|
public Dictionary<string, GameObject> enemiesCollection = new Dictionary<string, GameObject>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public partial class MainGameBaseCollection
|
2026-01-03 18:19:39 -05:00
|
|
|
{
|
2026-02-13 09:22:11 -05:00
|
|
|
public Dictionary<string, DamageNumber> hudTextCollection = new Dictionary<string, DamageNumber>();
|
2026-03-20 12:07:44 -04:00
|
|
|
public DamageNumber DamageNumber(Attack.AttackType attackType, bool isCritical)
|
2026-01-03 18:19:39 -05:00
|
|
|
{
|
|
|
|
|
string prefix = "DN";
|
|
|
|
|
string typeStr = attackType.ToString();
|
|
|
|
|
string criticalStr = isCritical ? "Critical" : "Normal";
|
|
|
|
|
string dnKey = $"{prefix}_{typeStr}_{criticalStr}";
|
|
|
|
|
if (hudTextCollection.TryGetValue(dnKey, out var hudTextPrefab))
|
|
|
|
|
{
|
|
|
|
|
return hudTextPrefab;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
throw new KeyNotFoundException($"HUD Text Prefab with key '{dnKey}' not found in BasePrefabsCollection.");
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-13 09:22:11 -05:00
|
|
|
public DamageNumber InfoText()
|
2026-01-03 18:19:39 -05:00
|
|
|
{
|
|
|
|
|
return hudTextCollection.GetValueOrDefault("Info_Normal");
|
|
|
|
|
}
|
2025-11-25 08:19:33 -05:00
|
|
|
}
|
2026-02-13 09:22:11 -05:00
|
|
|
|
|
|
|
|
public partial class MainGameBaseCollection
|
|
|
|
|
{
|
|
|
|
|
public Dictionary<string, GameObject> feedbackCollection;
|
|
|
|
|
}
|
2025-11-25 08:19:33 -05:00
|
|
|
}
|