using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
namespace Snxxz.UI
|
{
|
|
public class EquipSetStar
|
{
|
public readonly int level = 0;
|
Dictionary<int, int> equipStars = new Dictionary<int, int>();
|
|
public EquipSetStar(int level)
|
{
|
this.level = level;
|
}
|
|
public int GetTotalStarLevel()
|
{
|
var totalLevel = 0;
|
foreach (var starLevel in equipStars.Values)
|
{
|
totalLevel += starLevel;
|
}
|
|
return totalLevel;
|
}
|
|
public void UpdateEquipStarLevel(int place, int level)
|
{
|
equipStars[place] = level;
|
}
|
|
public int GetEquipStarLevel(int place)
|
{
|
return equipStars.ContainsKey(place) ? equipStars[place] : 0;
|
}
|
|
public int GetEquipCountWhichStarLevelLq(int standard)
|
{
|
var count = 0;
|
foreach (var starLevel in equipStars.Values)
|
{
|
count += starLevel >= standard ? 1 : 0;
|
}
|
|
return count;
|
}
|
|
}
|
|
public enum EquipSuitType
|
{
|
TwoSuit = 2,
|
FiveSuit = 5,
|
EightSuit = 8,
|
}
|
|
}
|