Grasscutter/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java

27 lines
446 B
Java
Raw Normal View History

2022-04-17 12:43:07 +00:00
package emu.grasscutter.game.avatar;
import dev.morphia.annotations.Entity;
@Entity
2022-04-17 12:43:07 +00:00
public class AvatarProfileData {
private int avatarId;
private int level;
public AvatarProfileData(Avatar avatar) {
2022-04-17 12:43:07 +00:00
this.update(avatar);
}
public int getAvatarId() {
return avatarId;
}
public int getLevel() {
return level;
}
public void update(Avatar avatar) {
2022-04-17 12:43:07 +00:00
this.avatarId = avatar.getAvatarId();
this.level = avatar.getLevel();
}
}