28 lines
751 B
C#
28 lines
751 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace Continentis.MainGame.Rules
|
|
{
|
|
public class AttributeRulesMerger
|
|
{
|
|
public List<AttributeRulesCollectionBase> rulesCollections;
|
|
|
|
public UnityAction<Dictionary<string, float>, Dictionary<string, float>> convertCoreIntoGeneral;
|
|
|
|
public AttributeRulesMerger()
|
|
{
|
|
rulesCollections = new List<AttributeRulesCollectionBase>();
|
|
}
|
|
|
|
public void ApplyRules()
|
|
{
|
|
rulesCollections.Sort();
|
|
|
|
foreach (var rules in rulesCollections)
|
|
{
|
|
convertCoreIntoGeneral += rules.ApplyRules_ConvertCoreIntoGeneral;
|
|
}
|
|
}
|
|
}
|
|
} |