using System.Collections; using System.Collections.Generic; using UnityEngine; public class BuffParticipantEffect : IBattleEffect { private BattleParticipant mParticipant; private BuffType mType; private BuffDuration mDuration; private int mAmount; public BuffParticipantEffect(BattleParticipant participant, BuffType type, int amount, BuffDuration duration) { mParticipant = participant; mType = type; mAmount = amount; mDuration = duration; } public void Apply(IBattleEffectResolver resolver) { resolver.BuffParticipant(this); } public BattleParticipant Participant {get => mParticipant;} public BuffType Type {get => mType;} public BuffDuration Duration {get => mDuration;} public int Amount {get => mAmount;} }