From 5087465ecb4187110d1a96a3b9ff4cdb98abb397 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 13 Aug 2024 12:04:18 -0400 Subject: [PATCH] Power parsing work --- src/engine/wpak/PowersParser.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/engine/wpak/PowersParser.java diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java new file mode 100644 index 00000000..11ab9060 --- /dev/null +++ b/src/engine/wpak/PowersParser.java @@ -0,0 +1,17 @@ +// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . +// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· +// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ +// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ +// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ +// Magicbane Emulator Project © 2013 - 2024 +// www.magicbane.com + +package engine.wpak; + +import java.util.regex.Pattern; + +public class PowersParser { + + private static final Pattern POWER_REGEX = Pattern.compile("(?<=POWERBEGIN)(.+?)(?=POWEREND)", Pattern.DOTALL); + +}