卡牌更新
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.MainGame.Rules
|
||||
{
|
||||
public class AttributeRulesCollectionBase : RulesCollectionBase
|
||||
{
|
||||
public virtual void ApplyRules_ConvertCoreIntoGeneral(Dictionary<string, float> core, Dictionary<string, float> general)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,29 +1,19 @@
|
||||
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>();
|
||||
convertCoreIntoGeneral = (coreAttributes, generalAttributes) => { };
|
||||
}
|
||||
|
||||
public void ApplyRules()
|
||||
{
|
||||
rulesCollections.Sort();
|
||||
|
||||
foreach (var rules in rulesCollections)
|
||||
{
|
||||
convertCoreIntoGeneral += rules.ApplyRules_ConvertCoreIntoGeneral;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user