2022-04-17 12:43:07 +00:00
|
|
|
package emu.grasscutter.game.avatar;
|
|
|
|
|
2022-04-22 02:19:47 +00:00
|
|
|
import dev.morphia.annotations.Entity;
|
|
|
|
|
|
|
|
@Entity
|
2022-04-17 12:43:07 +00:00
|
|
|
public class AvatarProfileData {
|
|
|
|
private int avatarId;
|
|
|
|
private int level;
|
|
|
|
|
2022-04-27 04:21:57 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-04-27 04:21:57 +00:00
|
|
|
public void update(Avatar avatar) {
|
2022-04-17 12:43:07 +00:00
|
|
|
this.avatarId = avatar.getAvatarId();
|
|
|
|
this.level = avatar.getLevel();
|
|
|
|
}
|
|
|
|
}
|