26 lines
650 B
C#
26 lines
650 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Continentis.MainGame.Card
|
|
{
|
|
public class WeightSubmodule : SubmoduleBase<CardInstance>
|
|
{
|
|
public bool forceUse;
|
|
public bool forceIgnore;
|
|
public float baseWeight;
|
|
public float currentWeight;
|
|
|
|
public WeightSubmodule(CardInstance owner) : base(owner)
|
|
{
|
|
this.forceUse = false;
|
|
this.forceIgnore = false;
|
|
this.baseWeight = owner.cardData.baseWeight;
|
|
this.currentWeight = baseWeight;
|
|
}
|
|
|
|
public void RefreshCurrentWeight()
|
|
{
|
|
this.currentWeight = baseWeight;
|
|
}
|
|
}
|
|
} |