Implement buying from mall shop

This commit is contained in:
Melledy
2025-11-04 04:58:24 -08:00
parent 0119c4942c
commit 9e7167a5ad
3 changed files with 78 additions and 2 deletions
@@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName;
import emu.nebula.data.BaseDef;
import emu.nebula.data.ResourceType;
import emu.nebula.game.inventory.ItemParamMap;
import lombok.Getter;
@Getter
@@ -15,9 +16,17 @@ public class MallPackageDef extends BaseDef {
private int CurrencyType;
private int CurrencyItemId;
private int CurrencyItemQty;
private String Items;
private transient ItemParamMap products;
@Override
public int getId() {
return IdString.hashCode();
}
@Override
public void onLoad() {
this.products = ItemParamMap.fromJsonString(this.Items);
}
}