-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deserialization support for tsv files * Benchmarking * Apparently moving the setter out of the lambda fixed the setAccessible issue * Thread it * Use AllArgsConstructor instead of field reflection * Clean up AllArgsConstructor TSV deserialization * Refactor TsvUtils * Remove AllArgsConstructors from Excels * Set field accessible * [WIP] TSJ improvements * [WIP] More TSV stuff * [WIP] More TSV stuff * Working TSV parser (slow) * Load Excels in TSJ > JSON > TSV priority
- Loading branch information
Showing
16 changed files
with
754 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
src/main/java/emu/grasscutter/game/props/ItemUseAction/ItemUseAddExp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
package emu.grasscutter.game.props.ItemUseAction; | ||
|
||
import emu.grasscutter.game.props.ItemUseOp; | ||
import lombok.Getter; | ||
|
||
public class ItemUseAddExp extends ItemUseAction { | ||
@Getter private int exp = 0; | ||
|
||
public class ItemUseAddExp extends ItemUseInt { | ||
@Override | ||
public ItemUseOp getItemUseOp() { | ||
return ItemUseOp.ITEM_USE_ADD_EXP; | ||
} | ||
|
||
public ItemUseAddExp(String[] useParam) { | ||
try { | ||
this.exp = Integer.parseInt(useParam[0]); | ||
} catch (NumberFormatException ignored) {} | ||
super(useParam); | ||
} | ||
|
||
public int getExp() { | ||
return this.i; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
src/main/java/emu/grasscutter/game/props/ItemUseAction/ItemUseAddReliquaryExp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
package emu.grasscutter.game.props.ItemUseAction; | ||
|
||
import emu.grasscutter.game.props.ItemUseOp; | ||
import lombok.Getter; | ||
|
||
public class ItemUseAddReliquaryExp extends ItemUseAction { | ||
@Getter private int exp = 0; | ||
|
||
public class ItemUseAddReliquaryExp extends ItemUseAddExp { | ||
@Override | ||
public ItemUseOp getItemUseOp() { | ||
return ItemUseOp.ITEM_USE_ADD_RELIQUARY_EXP; | ||
} | ||
|
||
public ItemUseAddReliquaryExp(String[] useParam) { | ||
try { | ||
this.exp = Integer.parseInt(useParam[0]); | ||
} catch (NumberFormatException ignored) {} | ||
super(useParam); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
src/main/java/emu/grasscutter/game/props/ItemUseAction/ItemUseAddWeaponExp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
package emu.grasscutter.game.props.ItemUseAction; | ||
|
||
import emu.grasscutter.game.props.ItemUseOp; | ||
import lombok.Getter; | ||
|
||
public class ItemUseAddWeaponExp extends ItemUseAction { | ||
@Getter private int exp = 0; | ||
|
||
public class ItemUseAddWeaponExp extends ItemUseAddExp { | ||
@Override | ||
public ItemUseOp getItemUseOp() { | ||
return ItemUseOp.ITEM_USE_ADD_WEAPON_EXP; | ||
} | ||
|
||
public ItemUseAddWeaponExp(String[] useParam) { | ||
try { | ||
this.exp = Integer.parseInt(useParam[0]); | ||
} catch (NumberFormatException ignored) {} | ||
super(useParam); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.