use of eidolons.game.module.adventure.entity.MacroAction in project Eidolons by IDemiurge.
the class MapActionPanel method getActions.
private List<ActionValueContainer> getActions(MacroParty source) {
// cache
List<MacroAction> actions = MacroActionManager.getMacroActions(MACRO_ACTION_GROUPS.PARTY, source);
List<ActionValueContainer> list = new ArrayList<>();
for (MacroAction sub : actions) {
boolean valid = true;
TextureRegion texture = TextureCache.getOrCreateR(sub.getImagePath());
list.add(new ActionValueContainer(valid, texture, () -> {
sub.invokeClicked();
}));
}
return list;
}
Aggregations