PowerActionEntry parsing work.
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user