mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-04 08:40:07 +00:00
27 lines
446 B
Java
27 lines
446 B
Java
package emu.grasscutter.game.avatar;
|
|
|
|
import dev.morphia.annotations.Entity;
|
|
|
|
@Entity
|
|
public class AvatarProfileData {
|
|
private int avatarId;
|
|
private int level;
|
|
|
|
public AvatarProfileData(Avatar avatar) {
|
|
this.update(avatar);
|
|
}
|
|
|
|
public int getAvatarId() {
|
|
return avatarId;
|
|
}
|
|
|
|
public int getLevel() {
|
|
return level;
|
|
}
|
|
|
|
public void update(Avatar avatar) {
|
|
this.avatarId = avatar.getAvatarId();
|
|
this.level = avatar.getLevel();
|
|
}
|
|
}
|