Implement Molotov Cocktail
This commit is contained in:
parent
938a56231a
commit
a37adf2972
17 changed files with 255 additions and 20 deletions
16
Assets/Battle/Triggers/StepTrigger.cs
Normal file
16
Assets/Battle/Triggers/StepTrigger.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
public class StepTrigger : Trigger {
|
||||
|
||||
private RoundStep step;
|
||||
|
||||
public StepTrigger(RoundStep step, TriggeredEffect callback,
|
||||
TriggerExpiration expiration, TriggerRepetition repetition)
|
||||
: base(callback, expiration, repetition) {
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public bool IsTriggeredBy(BattleTime time) {
|
||||
return time.RoundStep == this.step;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue