Implement OilOfSharpness
This commit is contained in:
parent
2190070fee
commit
31cb8fe4c0
45 changed files with 604 additions and 21 deletions
27
Assets/Battle/Effects/BuffParticipantEffect.cs
Normal file
27
Assets/Battle/Effects/BuffParticipantEffect.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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;}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue