Actions use same signature as modifiers
This commit is contained in:
1 parent
486141ce0b
commit
6018be3c72
2 files changed
+72
-33
No files matched your search
@@ -1375,7 +1375,8 @@ public class mbEnums {
|
||||
|
||||
@FunctionalInterface
|
||||
public interface PowerActionFunction {
|
||||
void execute();
|
||||
void execute(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank);
|
||||
}
|
||||
|
||||
public enum PowerActionType {
|
||||
@@ -1419,8 +1420,9 @@ public class mbEnums {
|
||||
// Need to figure out what this signature looks like.
|
||||
// Identical to behaviours?
|
||||
|
||||
public void execute() {
|
||||
function.execute();
|
||||
public void execute(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
function.execute(caster, target, power, powerAction, effect, modifierEntry, rank);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user