PlayerGachaInfo.java 1008 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
2
package emu.grasscutter.game.gacha;

3
4
5
import dev.morphia.annotations.Entity;

@Entity
Melledy's avatar
Melledy committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
public class PlayerGachaInfo {
	private PlayerGachaBannerInfo standardBanner;
	private PlayerGachaBannerInfo eventCharacterBanner;
	private PlayerGachaBannerInfo eventWeaponBanner;
	
	public PlayerGachaInfo() {
		this.standardBanner = new PlayerGachaBannerInfo();
		this.eventCharacterBanner = new PlayerGachaBannerInfo();
		this.eventWeaponBanner = new PlayerGachaBannerInfo();
	}
	
	public PlayerGachaBannerInfo getStandardBanner() {
		return standardBanner;
	}

	public PlayerGachaBannerInfo getEventCharacterBanner() {
		return eventCharacterBanner;
	}
	
	public PlayerGachaBannerInfo getEventWeaponBanner() {
		return eventWeaponBanner;
	}

	public PlayerGachaBannerInfo getBannerInfo(GachaBanner banner) {
		switch (banner.getBannerType()) {
			case EVENT:
				return this.eventCharacterBanner;
			case WEAPON:
				return this.eventWeaponBanner;
			case STANDARD:
			default:
				return this.standardBanner;
		}
	}
}