AvatarProfileData.java 460 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
2
package emu.grasscutter.game.avatar;

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
public class AvatarProfileData {
	private int avatarId;
	private int level;
	
	public AvatarProfileData(GenshinAvatar avatar) {
		this.update(avatar);
	}

	public int getAvatarId() {
		return avatarId;
	}

	public int getLevel() {
		return level;
	}

	public void update(GenshinAvatar avatar) {
		this.avatarId = avatar.getAvatarId();
		this.level = avatar.getLevel();
	}
}