Power Action Constructor (not finished)

This commit is contained in:
2024-09-02 16:30:47 -05:00
parent a5ccba2e27
commit 0fd6dfb648
13 changed files with 168 additions and 173 deletions
+3 -1
View File
@@ -31,6 +31,8 @@ public class PowerActionParser {
private static final Pattern POWER_ACTION_REGEX = Pattern.compile("(?<=POWERACTIONBEGIN)(.+?)(?=POWERACTIONEND)", Pattern.DOTALL);
private static final String powerActionPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/PowerActions.cfg";
public static ArrayList<PowerAction> power_actions= new ArrayList<>();
public static void parseWpakFile() {
// Read .wpak file from disk
@@ -52,7 +54,7 @@ public class PowerActionParser {
while (matcher.find()) {
PowerAction powerAction = parsePowerActionEntry(matcher.group().trim());
power_actions.add(powerAction);
}
}