AvatarProfileData.java 446 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
public class AvatarProfileData {
	private int avatarId;
	private int level;
	
10
	public AvatarProfileData(Avatar avatar) {
Melledy's avatar
Melledy committed
11
12
13
14
15
16
17
18
19
20
21
		this.update(avatar);
	}

	public int getAvatarId() {
		return avatarId;
	}

	public int getLevel() {
		return level;
	}

22
	public void update(Avatar avatar) {
Melledy's avatar
Melledy committed
23
24
25
26
		this.avatarId = avatar.getAvatarId();
		this.level = avatar.getLevel();
	}
}