mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 21:13:05 +08:00
49 lines
1.2 KiB
Java
49 lines
1.2 KiB
Java
package emu.grasscutter.data.excels.giving;
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
import emu.grasscutter.data.*;
|
|
import emu.grasscutter.data.common.ItemParamData;
|
|
import emu.grasscutter.game.inventory.BagTab;
|
|
import java.util.List;
|
|
import lombok.*;
|
|
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@ResourceType(name = "GivingExcelConfigData.json")
|
|
public final class GivingData extends GameResource {
|
|
@SerializedName(value = "id", alternate = "Id")
|
|
private int id;
|
|
|
|
private int talkId;
|
|
private int mistakeTalkId;
|
|
|
|
private BagTab tab;
|
|
private GiveMethod givingMethod;
|
|
|
|
private List<ItemParamData> exactItems;
|
|
private int exactFinishTalkId;
|
|
|
|
private List<Integer> givingGroupIds;
|
|
private int givingGroupCount;
|
|
|
|
private boolean isRemoveItem;
|
|
private GiveType giveType;
|
|
|
|
public enum GiveMethod {
|
|
GIVING_METHOD_NONE,
|
|
/** All items are required to succeed. */
|
|
GIVING_METHOD_EXACT,
|
|
GIVING_METHOD_GROUP,
|
|
/** One in the group is required to succeed. */
|
|
GIVING_METHOD_VAGUE_GROUP,
|
|
GIVING_METHOD_ANY_NO_FINISH
|
|
}
|
|
|
|
public enum GiveType {
|
|
@SerializedName("GIVING_TYPE_QUEST")
|
|
QUEST,
|
|
@SerializedName("GIVING_TYPE_GROUP")
|
|
GROUP
|
|
}
|
|
}
|