mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-12 20:34:36 +01:00
27 lines
549 B
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;
|
|
}
|
|
|
|
}
|