mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-07 02:26:43 +01:00
* Refactor a couple of iterators * Use side-effect instead of second iterator * Make World::onTick return shouldDelete instead of success * Replace Shop iterator with side effects * Scene * Clean up Expeditions * Refactor Expeditions * Clean up Expeditions, Player * Limit Expeditions by AR * Lombokify props Co-authored-by: AnimeGitB <AnimeGitB@bigblueball.in>
25 lines
704 B
Java
25 lines
704 B
Java
package emu.grasscutter.game.expedition;
|
|
|
|
import dev.morphia.annotations.Entity;
|
|
import emu.grasscutter.net.proto.AvatarExpeditionInfoOuterClass.AvatarExpeditionInfo;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
@Entity
|
|
@Getter @Setter
|
|
public class ExpeditionInfo {
|
|
private int state;
|
|
private int expId;
|
|
private int hourTime;
|
|
private int startTime;
|
|
|
|
public AvatarExpeditionInfo toProto() {
|
|
return AvatarExpeditionInfo.newBuilder()
|
|
.setStateValue(this.getState())
|
|
.setExpId(this.getExpId())
|
|
.setHourTime(this.getHourTime())
|
|
.setStartTime(this.getStartTime())
|
|
.build();
|
|
}
|
|
}
|