Browse Source

PowerActionEntry parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
dbc26b8243
  1. 8
      src/engine/wpak/PowerActionParser.java

8
src/engine/wpak/PowerActionParser.java

@ -8,6 +8,12 @@
package engine.wpak; package engine.wpak;
public class PowerActionParser { import engine.gameManager.ConfigManager;
import java.util.regex.Pattern;
public class PowerActionParser {
private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*");
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";
} }

Loading…
Cancel
Save