Grasscutter/src/main/java/emu/grasscutter/utils/ProtoHelper.java

11 lines
347 B
Java
Raw Normal View History

2022-04-17 20:43:07 +08:00
package emu.grasscutter.utils;
import emu.grasscutter.game.props.PlayerProperty;
import emu.grasscutter.net.proto.PropValueOuterClass.PropValue;
2022-04-18 13:11:27 +08:00
public final class ProtoHelper {
2022-04-17 20:43:07 +08:00
public static PropValue newPropValue(PlayerProperty key, int value) {
return PropValue.newBuilder().setType(key.getId()).setIval(value).setVal(value).build();
}
}