Files
Nebula/src/main/java/emu/nebula/game/tower/StarTowerPotentialInfo.java

27 lines
549 B
Java

package emu.nebula.game.tower;
import emu.nebula.proto.PublicStarTower.PotentialInfo;
import lombok.Getter;
@Getter
public class StarTowerPotentialInfo {
private int id;
private int level;
public StarTowerPotentialInfo(int id, int level) {
this.id = id;
this.level = level;
}
// Proto
public PotentialInfo toProto() {
var proto = PotentialInfo.newInstance()
.setTid(this.getId())
.setLevel(this.getLevel());
return proto;
}
}