意图初步
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.Card;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
@@ -8,6 +9,7 @@ namespace Continentis.MainGame.Character
|
||||
{
|
||||
public class IntentionSubmodule : SubmoduleBase<CharacterBase>
|
||||
{
|
||||
public List<IntentionBase> allIntentions;
|
||||
public IntentionBase currentIntention;
|
||||
public UnityAction getIntendedCards;
|
||||
|
||||
@@ -15,7 +17,8 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public IntentionSubmodule(CharacterBase owner) : base(owner)
|
||||
{
|
||||
currentIntention = new IntentionBase();
|
||||
allIntentions = new List<IntentionBase>();
|
||||
currentIntention = new IntentionBase(this);
|
||||
getIntendedCards = owner.GetIntendedCards;
|
||||
intendedCards = new List<IntendedCard>();
|
||||
}
|
||||
@@ -33,11 +36,30 @@ namespace Continentis.MainGame.Character
|
||||
}
|
||||
}
|
||||
|
||||
public class IntentionBase
|
||||
public class IntentionBase : IPrioritized
|
||||
{
|
||||
public int guaranteedStamina = 0;
|
||||
public int guaranteedMana = 0;
|
||||
public int maxCardCount = 999;
|
||||
public IntentionSubmodule intentionSubmodule;
|
||||
public CharacterBase character => intentionSubmodule.owner;
|
||||
public DeckSubmodule characterDeck => character.deckSubmodule;
|
||||
public RecordSubmodule characterRecord => character.recordSubmodule;
|
||||
public int Priority { get; protected set; }
|
||||
public int guaranteedStamina;
|
||||
public int guaranteedMana;
|
||||
public int maxCardCount;
|
||||
|
||||
public IntentionBase(IntentionSubmodule intentionSubmodule)
|
||||
{
|
||||
this.intentionSubmodule = intentionSubmodule;
|
||||
this.Priority = 0;
|
||||
this.guaranteedStamina = 0;
|
||||
this.guaranteedMana = 0;
|
||||
this.maxCardCount = 999;
|
||||
}
|
||||
|
||||
public virtual bool Condition()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void RefreshCardWeights()
|
||||
{
|
||||
@@ -48,5 +70,7 @@ namespace Continentis.MainGame.Character
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user