Add cache parsers and POJOs for DEED and RUNE templates
New engine.parsers package: - cache: DeedParser and RuneParser load COBJECTS/DEED and COBJECTS/RUNE JSON straight from the data dir, keyed by file id. CacheParserUtil holds the shared JSON helpers. - objects: standalone DeedTemplate and RuneTemplate covering every field in the client data, plus shared PowerGrant/UserPowerAction. - wpak: placeholder for upcoming wpak parsers. Not wired into server startup yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
777f7ad89d
commit
0d48080e38
8 files changed
+1222
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2026
|
||||
// https://www.magicbane.com
|
||||
|
||||
package engine.parsers.objects;
|
||||
|
||||
// One entry of item_user_power_action.
|
||||
// The same power can appear more than once on a single template,
|
||||
// so these are kept in a list rather than a map keyed by power.
|
||||
|
||||
public class UserPowerAction {
|
||||
|
||||
public String power;
|
||||
public int[] arguments;
|
||||
|
||||
public UserPowerAction(String power, int[] arguments) {
|
||||
this.power = power;
|
||||
this.arguments = arguments;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user