52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Continentis.MainGame.Card;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace Continentis.MainGame.Character
|
|
{
|
|
public class IntentionSubmodule : SubmoduleBase<CharacterBase>
|
|
{
|
|
public IntentionBase currentIntention;
|
|
public UnityAction getIntendedCards;
|
|
|
|
public List<IntendedCard> intendedCards;
|
|
|
|
public IntentionSubmodule(CharacterBase owner) : base(owner)
|
|
{
|
|
currentIntention = new IntentionBase();
|
|
getIntendedCards = owner.GetIntendedCards;
|
|
intendedCards = new List<IntendedCard>();
|
|
}
|
|
}
|
|
|
|
public class IntendedCard
|
|
{
|
|
public CardInstance cardInstance;
|
|
public List<CharacterBase> targets;
|
|
|
|
public IntendedCard(CardInstance cardInstance, List<CharacterBase> targets)
|
|
{
|
|
this.cardInstance = cardInstance;
|
|
this.targets = targets;
|
|
}
|
|
}
|
|
|
|
public class IntentionBase
|
|
{
|
|
public int guaranteedStamina = 0;
|
|
public int guaranteedMana = 0;
|
|
public int maxCardCount = 999;
|
|
|
|
public virtual void RefreshCardWeights()
|
|
{
|
|
|
|
}
|
|
|
|
public virtual void RefreshTargets()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |